export interface PublicApiRequest {
    collection: string;
    documentId?: string;
    slug?: string;
    locale?: string;
    fields?: string[];
    depth?: number;
}
export interface PublicApiResponse {
    data: Record<string, unknown> | Record<string, unknown>[];
    meta?: {
        total?: number;
        page?: number;
        pageSize?: number;
    };
}
/** Handle a public content API request (for headless consumption by AI agents or frontends). */
export declare function handleContentApiRequest(_request: PublicApiRequest, _db: unknown): Promise<PublicApiResponse>;
/** Transform a document for public API output, stripping internal fields. */
export declare function sanitizeForPublicApi(doc: Record<string, unknown>, allowedFields?: string[]): Record<string, unknown>;
//# sourceMappingURL=ai-api.d.ts.map