/** * StrictDB Schema Integration — Zod → SQL DDL + ES Mappings * * Optional Zod schema registration for: * - Write validation (parse on every write when schema: true) * - SQL DDL generation (CREATE TABLE) * - Elasticsearch mapping generation * - Field whitelist for sanitization */ import type { z } from 'zod'; import type { CollectionSchema, IndexDefinition, SqlDialect } from './types.js'; export declare function registerCollection(definition: CollectionSchema): void; export declare function getSchema(name: string): CollectionSchema | undefined; export declare function getRegisteredCollections(): string[]; export declare function getRegisteredIndexes(): IndexDefinition[]; export declare function registerIndex(definition: IndexDefinition): void; export declare function clearRegistry(): void; /** * Validate a document against the registered schema. * Returns null if valid, or a Zod error if invalid. */ export declare function validateDocument(collection: string, doc: unknown): z.ZodError | null; export declare function generateCreateTableSQL(name: string, schema: z.ZodType, dialect?: SqlDialect): string; export declare function generateCreateIndexSQL(idx: IndexDefinition, dialect?: SqlDialect): string; export declare function generateElasticMapping(schema: z.ZodType): Record; //# sourceMappingURL=schema.d.ts.map