import { type JsonSchema, type SchemaManifest } from "@aotter/mantle-spec"; import { isNullableJsonSchema } from "../../domain/model/EntryRow.js"; import type { Migration } from "../../domain/port/DatabaseDriver.js"; export { isNullableJsonSchema }; export interface SqliteSchemaTable { readonly schema: SchemaManifest; readonly table: string; readonly fields: readonly string[]; readonly selectColumns: string; } export declare function sqliteSchemaTable(schema: SchemaManifest): SqliteSchemaTable; export declare function validateSqliteSchemaTables(schemas: Iterable): readonly SchemaManifest[]; export declare function schemaTableMigrations(schemas: Iterable): readonly Migration[]; export declare function schemaTableProjection(schema: SchemaManifest): string; /** Automatic deploys may expand storage but never reinterpret values or alter uniqueness. */ export declare function isAdditiveSchemaTableChange(previous: string, next: string): boolean; /** Persist physical ownership as a superset so an additive rollback remains valid. */ export declare function mergeSchemaTableProjections(previous: string | undefined, next: string): string; /** Logical entry column name → physical SQLite column. The parser rejects * data properties with these names, so the mapping never shadows data. */ export declare const NATIVE_COLUMN: Readonly>; export declare function fieldColumn(schema: SchemaManifest, field: string): string | null; export declare function fieldSql(schema: SchemaManifest, field: string, alias?: string): string | null; export declare function encodeField(value: unknown, property: JsonSchema): unknown; export declare function decodeField(value: unknown, property: JsonSchema): unknown; export declare function quoteIdent(value: string): string; //# sourceMappingURL=SqliteSchemaTables.d.ts.map