import type { MarkdownHeading } from '@astrojs/markdown-remark'; import * as z from 'zod/v4'; import type * as zCore from 'zod/v4/core'; import type { ImageMetadata } from '../assets/types.js'; import { type AstroComponentFactory } from '../runtime/server/index.js'; import type { LiveDataCollectionResult, LiveDataEntryResult } from '../types/public/content.js'; import { type LIVE_CONTENT_TYPE } from './consts.js'; import { type DataEntry } from './data-store.js'; import { LiveCollectionCacheHintError, LiveCollectionError, LiveCollectionValidationError, LiveEntryNotFoundError } from './loaders/errors.js'; import type { LiveLoader } from './loaders/types.js'; export { LiveCollectionError, LiveCollectionCacheHintError, LiveEntryNotFoundError, LiveCollectionValidationError, }; type LiveCollectionConfigMap = Record; export declare function createGetCollection({ liveCollections, }: { liveCollections: LiveCollectionConfigMap; }): (collection: string, filter?: ((entry: any) => unknown) | Record) => Promise<{ data: Record; collection: string; id: string; filePath?: string; body?: string; digest?: number | string; rendered?: import("./data-store.js").RenderedContent; deferredRender?: boolean; assetImports?: Array; }[]>; type ContentEntryResult = { id: string; slug: string; body: string; collection: string; data: Record; render(): Promise; }; type DataEntryResult = { id: string; collection: string; data: Record; }; type EntryLookupObject = { collection: string; id: string; } | { collection: string; slug: string; }; export declare function createGetEntry({ liveCollections }: { liveCollections: LiveCollectionConfigMap; }): (collectionOrLookupObject: string | EntryLookupObject, lookup?: string | Record) => Promise; export declare function createGetEntries(getEntry: ReturnType): (entries: { collection: string; id: string; }[] | { collection: string; slug: string; }[]) => Promise<(ContentEntryResult | DataEntryResult | undefined)[]>; export declare function createGetLiveCollection({ liveCollections, }: { liveCollections: LiveCollectionConfigMap; }): (collection: string, filter?: Record) => Promise; export declare function createGetLiveEntry({ liveCollections, }: { liveCollections: LiveCollectionConfigMap; }): (collection: string, lookup: string | Record) => Promise; type RenderResult = { Content: AstroComponentFactory; headings: MarkdownHeading[]; remarkPluginFrontmatter: Record; }; export declare function updateImageReferencesInData>(data: T, fileName?: string, imageAssetMap?: Map): T; export declare function renderEntry(entry: DataEntry): Promise; export declare function createReference(): (collection: string) => z.ZodPipe, z.ZodObject<{ slug: z.ZodString; collection: z.ZodString; }, z.core.$strip>]>, z.ZodTransform<{ id: string; collection: string; } | { slug: string; collection: string; } | undefined, string | { id: string; collection: string; } | { slug: string; collection: string; }>>; export declare function defineCollection(config: any): import("./config.js").CollectionConfig { id: string; }[] | Promise<{ id: string; }[]> | Record & { id?: string; }> | Promise & { id?: string; }>>)>; export declare function defineLiveCollection(): void; export declare function createDeprecatedFunction(functionName: string): (collection: string) => never;