declare module 'astro:content' { export { z } from 'astro/zod'; // This needs to be in sync with ImageMetadata export type ImageFunction = () => import('astro/zod').ZodObject<{ src: import('astro/zod').ZodString; width: import('astro/zod').ZodNumber; height: import('astro/zod').ZodNumber; format: import('astro/zod').ZodUnion< [ import('astro/zod').ZodLiteral<'png'>, import('astro/zod').ZodLiteral<'jpg'>, import('astro/zod').ZodLiteral<'jpeg'>, import('astro/zod').ZodLiteral<'tiff'>, import('astro/zod').ZodLiteral<'webp'>, import('astro/zod').ZodLiteral<'gif'>, import('astro/zod').ZodLiteral<'svg'>, import('astro/zod').ZodLiteral<'avif'>, ] >; }>; export interface DataEntry { id: string; data: Record; filePath?: string; body?: string; } export interface DataStore { get: (key: string) => DataEntry; entries: () => Array<[id: string, DataEntry]>; set: (key: string, data: Record, body?: string, filePath?: string) => void; values: () => Array; keys: () => Array; delete: (key: string) => void; clear: () => void; has: (key: string) => boolean; } export interface MetaStore { get: (key: string) => string | undefined; set: (key: string, value: string) => void; delete: (key: string) => void; has: (key: string) => boolean; } type BaseSchemaWithoutEffects = | import('astro/zod').AnyZodObject | import('astro/zod').ZodUnion<[BaseSchemaWithoutEffects, ...BaseSchemaWithoutEffects[]]> | import('astro/zod').ZodDiscriminatedUnion | import('astro/zod').ZodIntersection; export type BaseSchema = | BaseSchemaWithoutEffects | import('astro/zod').ZodEffects; export type SchemaContext = { image: ImageFunction }; type ContentLayerConfig = { type?: 'content_layer'; schema?: S | ((context: SchemaContext) => S); loader: | import('astro/loaders').Loader | (() => | Array | Promise> | Record & { id?: string }> | Promise & { id?: string }>>); }; type DataCollectionConfig = { type: 'data'; schema?: S | ((context: SchemaContext) => S); }; type ContentCollectionConfig = { type?: 'content'; schema?: S | ((context: SchemaContext) => S); loader?: never; }; export type CollectionConfig = | ContentCollectionConfig | DataCollectionConfig | ContentLayerConfig; export function defineCollection( input: CollectionConfig, ): CollectionConfig; /** Run `astro dev` or `astro sync` to generate high fidelity types */ export const getEntryBySlug: (...args: any[]) => any; /** Run `astro dev` or `astro sync` to generate high fidelity types */ export const getDataEntryById: (...args: any[]) => any; /** Run `astro dev` or `astro sync` to generate high fidelity types */ export const getCollection: (...args: any[]) => any; /** Run `astro dev` or `astro sync` to generate high fidelity types */ export const getEntry: (...args: any[]) => any; /** Run `astro dev` or `astro sync` to generate high fidelity types */ export const getEntries: (...args: any[]) => any; /** Run `astro dev` or `astro sync` to generate high fidelity types */ export const reference: (...args: any[]) => any; /** Run `astro dev` or `astro sync` to generate high fidelity types */ export type CollectionKey = any; /** Run `astro dev` or `astro sync` to generate high fidelity types */ // biome-ignore lint/correctness/noUnusedVariables: stub generic type to match generated type export type CollectionEntry = any; /** Run `astro dev` or `astro sync` to generate high fidelity types */ export type ContentCollectionKey = any; /** Run `astro dev` or `astro sync` to generate high fidelity types */ export type DataCollectionKey = any; /** Run `astro dev` or `astro sync` to generate high fidelity types */ export type ContentConfig = any; /** Run `astro dev` or `astro sync` to generate high fidelity types */ export const render: (entry: any) => any; }