2022-07-11 12:12:18 +00:00
/// <reference path="./client.d.ts" />
2022-03-03 17:34:04 +00:00
2022-03-29 00:16:06 +00:00
type Astro = import ( 'astro' ) . AstroGlobal ;
2022-03-03 17:34:04 +00: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 21:08:27 +00:00
* Astro global available in all contexts in . astro files
*
* [ Astro documentation ] ( https : //docs.astro.build/reference/api-reference/#astro-global)
2022-03-03 17:34:04 +00:00
* /
declare const Astro : Readonly < Astro > ;
declare const Fragment : any ;
2022-04-24 23:13:33 +00:00
declare module '*.md' {
type MD = import ( 'astro' ) . MarkdownInstance < Record < string , any > > ;
export const frontmatter : MD [ 'frontmatter' ] ;
export const file : MD [ 'file' ] ;
export const url : MD [ 'url' ] ;
2022-07-23 22:23:15 +00:00
export const getHeadings : MD [ 'getHeadings' ] ;
/** @deprecated Renamed to `getHeadings()` */
export const getHeaders : ( ) = > void ;
2022-04-24 23:13:33 +00:00
export const Content : MD [ 'Content' ] ;
2022-05-27 20:56:08 +00:00
export const rawContent : MD [ 'rawContent' ] ;
export const compiledContent : MD [ 'compiledContent' ] ;
2022-04-24 23:13:33 +00:00
const load : MD [ 'default' ] ;
export default load ;
}
2022-07-22 15:32:36 +00:00
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 15:32:36 +00:00
}