declare module 'astro:content' { export { z } from 'astro/zod'; export type CollectionEntry = typeof entryMap[C][keyof typeof entryMap[C]] & Render; type BaseCollectionConfig = { schema?: S; slug?: (entry: { id: CollectionEntry['id']; defaultSlug: string; collection: string; body: string; data: import('astro/zod').infer>; }) => string | Promise; }; export function defineCollection( input: BaseCollectionConfig ): BaseCollectionConfig; export function getEntry( collection: C, entryKey: E ): Promise; export function getCollection< C extends keyof typeof entryMap, E extends keyof typeof entryMap[C] >( collection: C, filter?: (data: typeof entryMap[C][E]) => boolean ): Promise<(typeof entryMap[C][E] & Render)[]>; type InferEntrySchema = import('astro/zod').infer< import('astro/zod').ZodObject['schema']> >; type Render = { render(): Promise<{ Content: import('astro').MarkdownInstance<{}>['Content']; headings: import('astro').MarkdownHeading[]; injectedFrontmatter: Record; }>; }; const entryMap: { "articles": { "en/post-0.mdx": { id: "en/post-0.mdx", slug: "en/post-0", body: string, collection: "articles", data: any }, "en/sci-hub-blocage.md": { id: "en/sci-hub-blocage.md", slug: "en/sci-hub-blocage", body: string, collection: "articles", data: any }, "en/sci-hub.mdx": { id: "en/sci-hub.mdx", slug: "en/sci-hub", body: string, collection: "articles", data: any }, "fr/post-0.mdx": { id: "fr/post-0.mdx", slug: "fr/post-0", body: string, collection: "articles", data: any }, "fr/sci-hub-blocage.md": { id: "fr/sci-hub-blocage.md", slug: "fr/sci-hub-blocage", body: string, collection: "articles", data: any }, "fr/sci-hub.mdx": { id: "fr/sci-hub.mdx", slug: "fr/sci-hub", body: string, collection: "articles", data: any }, }, }; type ContentConfig = never; }