2022-07-11 08:12:18 -04:00
/// <reference path="./client.d.ts" />
2022-03-03 12:34:04 -05:00
2022-08-25 20:57:11 +02:00
type Astro = import ( './dist/@types/astro' ) . AstroGlobal ;
2022-03-03 12:34:04 -05:00
// We duplicate the description here because editors won't show the JSDoc comment from the imported type (but will for its properties, ex: Astro.request will show the AstroGlobal.request description)
/ * *
2022-04-07 17:08:27 -04:00
* Astro global available in all contexts in . astro files
*
* [ Astro documentation ] ( https : //docs.astro.build/reference/api-reference/#astro-global)
2022-03-03 12:34:04 -05:00
* /
declare const Astro : Readonly < Astro > ;
declare const Fragment : any ;
2022-04-24 20:13:33 -03:00
declare module '*.md' {
2022-08-25 20:57:11 +02:00
type MD = import ( './dist/@types/astro' ) . MarkdownInstance < Record < string , any > > ;
2022-04-24 20:13:33 -03:00
export const frontmatter : MD [ 'frontmatter' ] ;
export const file : MD [ 'file' ] ;
export const url : MD [ 'url' ] ;
2022-07-23 17:23:15 -05:00
export const getHeadings : MD [ 'getHeadings' ] ;
/** @deprecated Renamed to `getHeadings()` */
export const getHeaders : ( ) = > void ;
2022-04-24 20:13:33 -03:00
export const Content : MD [ 'Content' ] ;
2022-05-27 16:56:08 -04:00
export const rawContent : MD [ 'rawContent' ] ;
export const compiledContent : MD [ 'compiledContent' ] ;
2022-04-24 20:13:33 -03:00
const load : MD [ 'default' ] ;
export default load ;
}
2022-07-22 10:32:36 -05:00
2022-08-12 17:17:26 -05:00
declare module '*.mdx' {
2022-08-25 20:57:11 +02:00
type MDX = import ( './dist/@types/astro' ) . MDXInstance < Record < string , any > > ;
2022-08-12 17:17:26 -05:00
export const frontmatter : MDX [ 'frontmatter' ] ;
export const file : MDX [ 'file' ] ;
export const url : MDX [ 'url' ] ;
export const getHeadings : MDX [ 'getHeadings' ] ;
export const Content : MDX [ 'Content' ] ;
export const rawContent : MDX [ 'rawContent' ] ;
export const compiledContent : MDX [ 'compiledContent' ] ;
const load : MDX [ 'default' ] ;
export default load ;
}
2022-07-22 15:34:44 +00:00
declare module '*.html' {
const Component : { render ( opts : { slots : Record < string , string > } ) : string } ;
export default Component ;
2022-07-22 10:32:36 -05:00
}