import { LibSQLDatabase } from 'drizzle-orm/libsql'; import { MySql2Database } from 'drizzle-orm/mysql2'; import { PgDatabase } from 'drizzle-orm/pg-core'; import { C as CasingType } from './common-DYjgLS6u.mjs'; import * as zod from 'zod'; import { TypeOf } from 'zod'; declare const schema$1: zod.ZodObject; dialect: zod.ZodLiteral<"mysql">; tables: zod.ZodRecord; default: zod.ZodOptional; onUpdate: zod.ZodOptional; generated: zod.ZodOptional; as: zod.ZodString; }, "strip", zod.ZodTypeAny, { type: "stored" | "virtual"; as: string; }, { type: "stored" | "virtual"; as: string; }>>; }, "strict", zod.ZodTypeAny, { name: string; type: string; primaryKey: boolean; notNull: boolean; default?: any; onUpdate?: any; autoincrement?: boolean | undefined; generated?: { type: "stored" | "virtual"; as: string; } | undefined; }, { name: string; type: string; primaryKey: boolean; notNull: boolean; default?: any; onUpdate?: any; autoincrement?: boolean | undefined; generated?: { type: "stored" | "virtual"; as: string; } | undefined; }>>; indexes: zod.ZodRecord; isUnique: zod.ZodBoolean; using: zod.ZodOptional>; algorithm: zod.ZodOptional>; lock: zod.ZodOptional>; }, "strict", zod.ZodTypeAny, { name: string; columns: string[]; isUnique: boolean; using?: "btree" | "hash" | undefined; algorithm?: "default" | "inplace" | "copy" | undefined; lock?: "none" | "default" | "shared" | "exclusive" | undefined; }, { name: string; columns: string[]; isUnique: boolean; using?: "btree" | "hash" | undefined; algorithm?: "default" | "inplace" | "copy" | undefined; lock?: "none" | "default" | "shared" | "exclusive" | undefined; }>>; foreignKeys: zod.ZodRecord; tableTo: zod.ZodString; columnsTo: zod.ZodArray; onUpdate: zod.ZodOptional; onDelete: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { name: string; tableFrom: string; columnsFrom: string[]; tableTo: string; columnsTo: string[]; onUpdate?: string | undefined; onDelete?: string | undefined; }, { name: string; tableFrom: string; columnsFrom: string[]; tableTo: string; columnsTo: string[]; onUpdate?: string | undefined; onDelete?: string | undefined; }>>; compositePrimaryKeys: zod.ZodRecord; }, "strict", zod.ZodTypeAny, { name: string; columns: string[]; }, { name: string; columns: string[]; }>>; uniqueConstraints: zod.ZodDefault; }, "strict", zod.ZodTypeAny, { name: string; columns: string[]; }, { name: string; columns: string[]; }>>>; checkConstraint: zod.ZodDefault>>; }, "strict", zod.ZodTypeAny, { name: string; columns: Record; indexes: Record; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints: Record; checkConstraint: Record; }, { name: string; columns: Record; indexes: Record; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints?: Record | undefined; checkConstraint?: Record | undefined; }>>; views: zod.ZodDefault; default: zod.ZodOptional; onUpdate: zod.ZodOptional; generated: zod.ZodOptional; as: zod.ZodString; }, "strip", zod.ZodTypeAny, { type: "stored" | "virtual"; as: string; }, { type: "stored" | "virtual"; as: string; }>>; }, "strict", zod.ZodTypeAny, { name: string; type: string; primaryKey: boolean; notNull: boolean; default?: any; onUpdate?: any; autoincrement?: boolean | undefined; generated?: { type: "stored" | "virtual"; as: string; } | undefined; }, { name: string; type: string; primaryKey: boolean; notNull: boolean; default?: any; onUpdate?: any; autoincrement?: boolean | undefined; generated?: { type: "stored" | "virtual"; as: string; } | undefined; }>>; definition: zod.ZodOptional; isExisting: zod.ZodBoolean; }, { algorithm: zod.ZodEnum<["undefined", "merge", "temptable"]>; sqlSecurity: zod.ZodEnum<["definer", "invoker"]>; withCheckOption: zod.ZodOptional>; }>, "strict", zod.ZodTypeAny, { name: string; columns: Record; algorithm: "undefined" | "merge" | "temptable"; sqlSecurity: "definer" | "invoker"; isExisting: boolean; withCheckOption?: "local" | "cascaded" | undefined; definition?: string | undefined; }, { name: string; columns: Record; algorithm: "undefined" | "merge" | "temptable"; sqlSecurity: "definer" | "invoker"; isExisting: boolean; withCheckOption?: "local" | "cascaded" | undefined; definition?: string | undefined; }>>>; _meta: zod.ZodObject<{ tables: zod.ZodRecord; columns: zod.ZodRecord; }, "strip", zod.ZodTypeAny, { columns: Record; tables: Record; }, { columns: Record; tables: Record; }>; internal: zod.ZodOptional; }, "strip", zod.ZodTypeAny, { isDefaultAnExpression?: boolean | undefined; }, { isDefaultAnExpression?: boolean | undefined; }>>>; }, "strip", zod.ZodTypeAny, { columns: Record; }, { columns: Record; }>>>>; indexes: zod.ZodOptional; }, "strip", zod.ZodTypeAny, { isExpression?: boolean | undefined; }, { isExpression?: boolean | undefined; }>>>; }, "strip", zod.ZodTypeAny, { columns: Record; }, { columns: Record; }>>>>; }, "strip", zod.ZodTypeAny, { indexes?: Record; } | undefined> | undefined; tables?: Record; } | undefined> | undefined; }, { indexes?: Record; } | undefined> | undefined; tables?: Record; } | undefined> | undefined; }>>; }, { id: zod.ZodString; prevId: zod.ZodString; }>, "strip", zod.ZodTypeAny, { tables: Record; indexes: Record; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints: Record; checkConstraint: Record; }>; id: string; prevId: string; version: "5"; dialect: "mysql"; _meta: { columns: Record; tables: Record; }; views: Record; algorithm: "undefined" | "merge" | "temptable"; sqlSecurity: "definer" | "invoker"; isExisting: boolean; withCheckOption?: "local" | "cascaded" | undefined; definition?: string | undefined; }>; internal?: { indexes?: Record; } | undefined> | undefined; tables?: Record; } | undefined> | undefined; } | undefined; }, { tables: Record; indexes: Record; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints?: Record | undefined; checkConstraint?: Record | undefined; }>; id: string; prevId: string; version: "5"; dialect: "mysql"; _meta: { columns: Record; tables: Record; }; internal?: { indexes?: Record; } | undefined> | undefined; tables?: Record; } | undefined> | undefined; } | undefined; views?: Record; algorithm: "undefined" | "merge" | "temptable"; sqlSecurity: "definer" | "invoker"; isExisting: boolean; withCheckOption?: "local" | "cascaded" | undefined; definition?: string | undefined; }> | undefined; }>; type MySqlSchema = TypeOf; declare const pgSchema: zod.ZodObject; dialect: zod.ZodLiteral<"postgresql">; tables: zod.ZodRecord; primaryKey: zod.ZodBoolean; notNull: zod.ZodBoolean; default: zod.ZodOptional; isUnique: zod.ZodOptional; uniqueName: zod.ZodOptional; nullsNotDistinct: zod.ZodOptional; generated: zod.ZodOptional; as: zod.ZodString; }, "strip", zod.ZodTypeAny, { type: "stored"; as: string; }, { type: "stored"; as: string; }>>; identity: zod.ZodOptional; minValue: zod.ZodOptional; maxValue: zod.ZodOptional; startWith: zod.ZodOptional; cache: zod.ZodOptional; cycle: zod.ZodOptional; schema: zod.ZodString; }, { type: zod.ZodEnum<["always", "byDefault"]>; }>, "strip", zod.ZodTypeAny, { name: string; type: "always" | "byDefault"; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; }, { name: string; type: "always" | "byDefault"; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; }>>; }, "strict", zod.ZodTypeAny, { name: string; type: string; primaryKey: boolean; notNull: boolean; isUnique?: any; default?: any; generated?: { type: "stored"; as: string; } | undefined; typeSchema?: string | undefined; uniqueName?: string | undefined; nullsNotDistinct?: boolean | undefined; identity?: { name: string; type: "always" | "byDefault"; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; } | undefined; }, { name: string; type: string; primaryKey: boolean; notNull: boolean; isUnique?: any; default?: any; generated?: { type: "stored"; as: string; } | undefined; typeSchema?: string | undefined; uniqueName?: string | undefined; nullsNotDistinct?: boolean | undefined; identity?: { name: string; type: "always" | "byDefault"; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; } | undefined; }>>; indexes: zod.ZodRecord; opclass: zod.ZodOptional; }, "strip", zod.ZodTypeAny, { isExpression: boolean; expression: string; asc: boolean; nulls?: string | undefined; opclass?: string | undefined; }, { isExpression: boolean; expression: string; asc: boolean; nulls?: string | undefined; opclass?: string | undefined; }>, "many">; isUnique: zod.ZodBoolean; with: zod.ZodOptional>; method: zod.ZodDefault; where: zod.ZodOptional; concurrently: zod.ZodDefault; }, "strict", zod.ZodTypeAny, { name: string; columns: { isExpression: boolean; expression: string; asc: boolean; nulls?: string | undefined; opclass?: string | undefined; }[]; isUnique: boolean; method: string; concurrently: boolean; with?: Record | undefined; where?: string | undefined; }, { name: string; columns: { isExpression: boolean; expression: string; asc: boolean; nulls?: string | undefined; opclass?: string | undefined; }[]; isUnique: boolean; with?: Record | undefined; method?: string | undefined; where?: string | undefined; concurrently?: boolean | undefined; }>>; foreignKeys: zod.ZodRecord; tableTo: zod.ZodString; schemaTo: zod.ZodOptional; columnsTo: zod.ZodArray; onUpdate: zod.ZodOptional; onDelete: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { name: string; tableFrom: string; columnsFrom: string[]; tableTo: string; columnsTo: string[]; onUpdate?: string | undefined; onDelete?: string | undefined; schemaTo?: string | undefined; }, { name: string; tableFrom: string; columnsFrom: string[]; tableTo: string; columnsTo: string[]; onUpdate?: string | undefined; onDelete?: string | undefined; schemaTo?: string | undefined; }>>; compositePrimaryKeys: zod.ZodRecord; }, "strict", zod.ZodTypeAny, { name: string; columns: string[]; }, { name: string; columns: string[]; }>>; uniqueConstraints: zod.ZodDefault; nullsNotDistinct: zod.ZodBoolean; }, "strict", zod.ZodTypeAny, { name: string; columns: string[]; nullsNotDistinct: boolean; }, { name: string; columns: string[]; nullsNotDistinct: boolean; }>>>; policies: zod.ZodDefault>; for: zod.ZodOptional>; to: zod.ZodOptional>; using: zod.ZodOptional; withCheck: zod.ZodOptional; on: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { name: string; using?: string | undefined; as?: "PERMISSIVE" | "RESTRICTIVE" | undefined; for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined; to?: string[] | undefined; withCheck?: string | undefined; on?: string | undefined; }, { name: string; using?: string | undefined; as?: "PERMISSIVE" | "RESTRICTIVE" | undefined; for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined; to?: string[] | undefined; withCheck?: string | undefined; on?: string | undefined; }>>>; checkConstraints: zod.ZodDefault>>; isRLSEnabled: zod.ZodDefault; }, "strict", zod.ZodTypeAny, { name: string; columns: Record; indexes: Record | undefined; where?: string | undefined; }>; foreignKeys: Record; schema: string; compositePrimaryKeys: Record; uniqueConstraints: Record; checkConstraints: Record; policies: Record; isRLSEnabled: boolean; }, { name: string; columns: Record; indexes: Record | undefined; method?: string | undefined; where?: string | undefined; concurrently?: boolean | undefined; }>; foreignKeys: Record; schema: string; compositePrimaryKeys: Record; uniqueConstraints?: Record | undefined; checkConstraints?: Record | undefined; policies?: Record | undefined; isRLSEnabled?: boolean | undefined; }>>; enums: zod.ZodRecord; }, "strict", zod.ZodTypeAny, { name: string; values: string[]; schema: string; }, { name: string; values: string[]; schema: string; }>>; schemas: zod.ZodRecord; views: zod.ZodDefault; primaryKey: zod.ZodBoolean; notNull: zod.ZodBoolean; default: zod.ZodOptional; isUnique: zod.ZodOptional; uniqueName: zod.ZodOptional; nullsNotDistinct: zod.ZodOptional; generated: zod.ZodOptional; as: zod.ZodString; }, "strip", zod.ZodTypeAny, { type: "stored"; as: string; }, { type: "stored"; as: string; }>>; identity: zod.ZodOptional; minValue: zod.ZodOptional; maxValue: zod.ZodOptional; startWith: zod.ZodOptional; cache: zod.ZodOptional; cycle: zod.ZodOptional; schema: zod.ZodString; }, { type: zod.ZodEnum<["always", "byDefault"]>; }>, "strip", zod.ZodTypeAny, { name: string; type: "always" | "byDefault"; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; }, { name: string; type: "always" | "byDefault"; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; }>>; }, "strict", zod.ZodTypeAny, { name: string; type: string; primaryKey: boolean; notNull: boolean; isUnique?: any; default?: any; generated?: { type: "stored"; as: string; } | undefined; typeSchema?: string | undefined; uniqueName?: string | undefined; nullsNotDistinct?: boolean | undefined; identity?: { name: string; type: "always" | "byDefault"; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; } | undefined; }, { name: string; type: string; primaryKey: boolean; notNull: boolean; isUnique?: any; default?: any; generated?: { type: "stored"; as: string; } | undefined; typeSchema?: string | undefined; uniqueName?: string | undefined; nullsNotDistinct?: boolean | undefined; identity?: { name: string; type: "always" | "byDefault"; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; } | undefined; }>>; definition: zod.ZodOptional; materialized: zod.ZodBoolean; with: zod.ZodOptional>; securityBarrier: zod.ZodOptional; securityInvoker: zod.ZodOptional; }, { fillfactor: zod.ZodOptional; toastTupleTarget: zod.ZodOptional; parallelWorkers: zod.ZodOptional; autovacuumEnabled: zod.ZodOptional; vacuumIndexCleanup: zod.ZodOptional>; vacuumTruncate: zod.ZodOptional; autovacuumVacuumThreshold: zod.ZodOptional; autovacuumVacuumScaleFactor: zod.ZodOptional; autovacuumVacuumCostDelay: zod.ZodOptional; autovacuumVacuumCostLimit: zod.ZodOptional; autovacuumFreezeMinAge: zod.ZodOptional; autovacuumFreezeMaxAge: zod.ZodOptional; autovacuumFreezeTableAge: zod.ZodOptional; autovacuumMultixactFreezeMinAge: zod.ZodOptional; autovacuumMultixactFreezeMaxAge: zod.ZodOptional; autovacuumMultixactFreezeTableAge: zod.ZodOptional; logAutovacuumMinDuration: zod.ZodOptional; userCatalogTable: zod.ZodOptional; }>, "strict", zod.ZodTypeAny, { checkOption?: "local" | "cascaded" | undefined; securityBarrier?: boolean | undefined; securityInvoker?: boolean | undefined; fillfactor?: number | undefined; toastTupleTarget?: number | undefined; parallelWorkers?: number | undefined; autovacuumEnabled?: boolean | undefined; vacuumIndexCleanup?: "on" | "auto" | "off" | undefined; vacuumTruncate?: boolean | undefined; autovacuumVacuumThreshold?: number | undefined; autovacuumVacuumScaleFactor?: number | undefined; autovacuumVacuumCostDelay?: number | undefined; autovacuumVacuumCostLimit?: number | undefined; autovacuumFreezeMinAge?: number | undefined; autovacuumFreezeMaxAge?: number | undefined; autovacuumFreezeTableAge?: number | undefined; autovacuumMultixactFreezeMinAge?: number | undefined; autovacuumMultixactFreezeMaxAge?: number | undefined; autovacuumMultixactFreezeTableAge?: number | undefined; logAutovacuumMinDuration?: number | undefined; userCatalogTable?: boolean | undefined; }, { checkOption?: "local" | "cascaded" | undefined; securityBarrier?: boolean | undefined; securityInvoker?: boolean | undefined; fillfactor?: number | undefined; toastTupleTarget?: number | undefined; parallelWorkers?: number | undefined; autovacuumEnabled?: boolean | undefined; vacuumIndexCleanup?: "on" | "auto" | "off" | undefined; vacuumTruncate?: boolean | undefined; autovacuumVacuumThreshold?: number | undefined; autovacuumVacuumScaleFactor?: number | undefined; autovacuumVacuumCostDelay?: number | undefined; autovacuumVacuumCostLimit?: number | undefined; autovacuumFreezeMinAge?: number | undefined; autovacuumFreezeMaxAge?: number | undefined; autovacuumFreezeTableAge?: number | undefined; autovacuumMultixactFreezeMinAge?: number | undefined; autovacuumMultixactFreezeMaxAge?: number | undefined; autovacuumMultixactFreezeTableAge?: number | undefined; logAutovacuumMinDuration?: number | undefined; userCatalogTable?: boolean | undefined; }>>; isExisting: zod.ZodBoolean; withNoData: zod.ZodOptional; using: zod.ZodOptional; tablespace: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { name: string; columns: Record; schema: string; isExisting: boolean; materialized: boolean; using?: string | undefined; definition?: string | undefined; with?: { checkOption?: "local" | "cascaded" | undefined; securityBarrier?: boolean | undefined; securityInvoker?: boolean | undefined; fillfactor?: number | undefined; toastTupleTarget?: number | undefined; parallelWorkers?: number | undefined; autovacuumEnabled?: boolean | undefined; vacuumIndexCleanup?: "on" | "auto" | "off" | undefined; vacuumTruncate?: boolean | undefined; autovacuumVacuumThreshold?: number | undefined; autovacuumVacuumScaleFactor?: number | undefined; autovacuumVacuumCostDelay?: number | undefined; autovacuumVacuumCostLimit?: number | undefined; autovacuumFreezeMinAge?: number | undefined; autovacuumFreezeMaxAge?: number | undefined; autovacuumFreezeTableAge?: number | undefined; autovacuumMultixactFreezeMinAge?: number | undefined; autovacuumMultixactFreezeMaxAge?: number | undefined; autovacuumMultixactFreezeTableAge?: number | undefined; logAutovacuumMinDuration?: number | undefined; userCatalogTable?: boolean | undefined; } | undefined; withNoData?: boolean | undefined; tablespace?: string | undefined; }, { name: string; columns: Record; schema: string; isExisting: boolean; materialized: boolean; using?: string | undefined; definition?: string | undefined; with?: { checkOption?: "local" | "cascaded" | undefined; securityBarrier?: boolean | undefined; securityInvoker?: boolean | undefined; fillfactor?: number | undefined; toastTupleTarget?: number | undefined; parallelWorkers?: number | undefined; autovacuumEnabled?: boolean | undefined; vacuumIndexCleanup?: "on" | "auto" | "off" | undefined; vacuumTruncate?: boolean | undefined; autovacuumVacuumThreshold?: number | undefined; autovacuumVacuumScaleFactor?: number | undefined; autovacuumVacuumCostDelay?: number | undefined; autovacuumVacuumCostLimit?: number | undefined; autovacuumFreezeMinAge?: number | undefined; autovacuumFreezeMaxAge?: number | undefined; autovacuumFreezeTableAge?: number | undefined; autovacuumMultixactFreezeMinAge?: number | undefined; autovacuumMultixactFreezeMaxAge?: number | undefined; autovacuumMultixactFreezeTableAge?: number | undefined; logAutovacuumMinDuration?: number | undefined; userCatalogTable?: boolean | undefined; } | undefined; withNoData?: boolean | undefined; tablespace?: string | undefined; }>>>; sequences: zod.ZodDefault; minValue: zod.ZodOptional; maxValue: zod.ZodOptional; startWith: zod.ZodOptional; cache: zod.ZodOptional; cycle: zod.ZodOptional; schema: zod.ZodString; }, "strict", zod.ZodTypeAny, { name: string; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; }, { name: string; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; }>>>; roles: zod.ZodDefault; createRole: zod.ZodOptional; inherit: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { name: string; createDb?: boolean | undefined; createRole?: boolean | undefined; inherit?: boolean | undefined; }, { name: string; createDb?: boolean | undefined; createRole?: boolean | undefined; inherit?: boolean | undefined; }>>>; policies: zod.ZodDefault>; for: zod.ZodOptional>; to: zod.ZodOptional>; using: zod.ZodOptional; withCheck: zod.ZodOptional; on: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { name: string; using?: string | undefined; as?: "PERMISSIVE" | "RESTRICTIVE" | undefined; for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined; to?: string[] | undefined; withCheck?: string | undefined; on?: string | undefined; }, { name: string; using?: string | undefined; as?: "PERMISSIVE" | "RESTRICTIVE" | undefined; for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined; to?: string[] | undefined; withCheck?: string | undefined; on?: string | undefined; }>>>; _meta: zod.ZodObject<{ schemas: zod.ZodRecord; tables: zod.ZodRecord; columns: zod.ZodRecord; }, "strip", zod.ZodTypeAny, { columns: Record; tables: Record; schemas: Record; }, { columns: Record; tables: Record; schemas: Record; }>; internal: zod.ZodOptional; dimensions: zod.ZodOptional; rawType: zod.ZodOptional; isDefaultAnExpression: zod.ZodOptional; }, "strip", zod.ZodTypeAny, { isDefaultAnExpression?: boolean | undefined; isArray?: boolean | undefined; dimensions?: number | undefined; rawType?: string | undefined; }, { isDefaultAnExpression?: boolean | undefined; isArray?: boolean | undefined; dimensions?: number | undefined; rawType?: string | undefined; }>>>; }, "strip", zod.ZodTypeAny, { columns: Record; }, { columns: Record; }>>>; }, "strip", zod.ZodTypeAny, { tables: Record; } | undefined>; }, { tables: Record; } | undefined>; }>>; }, { id: zod.ZodString; prevId: zod.ZodString; }>, "strip", zod.ZodTypeAny, { tables: Record; indexes: Record | undefined; where?: string | undefined; }>; foreignKeys: Record; schema: string; compositePrimaryKeys: Record; uniqueConstraints: Record; checkConstraints: Record; policies: Record; isRLSEnabled: boolean; }>; id: string; prevId: string; version: "7"; dialect: "postgresql"; schemas: Record; _meta: { columns: Record; tables: Record; schemas: Record; }; views: Record; schema: string; isExisting: boolean; materialized: boolean; using?: string | undefined; definition?: string | undefined; with?: { checkOption?: "local" | "cascaded" | undefined; securityBarrier?: boolean | undefined; securityInvoker?: boolean | undefined; fillfactor?: number | undefined; toastTupleTarget?: number | undefined; parallelWorkers?: number | undefined; autovacuumEnabled?: boolean | undefined; vacuumIndexCleanup?: "on" | "auto" | "off" | undefined; vacuumTruncate?: boolean | undefined; autovacuumVacuumThreshold?: number | undefined; autovacuumVacuumScaleFactor?: number | undefined; autovacuumVacuumCostDelay?: number | undefined; autovacuumVacuumCostLimit?: number | undefined; autovacuumFreezeMinAge?: number | undefined; autovacuumFreezeMaxAge?: number | undefined; autovacuumFreezeTableAge?: number | undefined; autovacuumMultixactFreezeMinAge?: number | undefined; autovacuumMultixactFreezeMaxAge?: number | undefined; autovacuumMultixactFreezeTableAge?: number | undefined; logAutovacuumMinDuration?: number | undefined; userCatalogTable?: boolean | undefined; } | undefined; withNoData?: boolean | undefined; tablespace?: string | undefined; }>; enums: Record; policies: Record; sequences: Record; roles: Record; internal?: { tables: Record; } | undefined>; } | undefined; }, { tables: Record; indexes: Record | undefined; method?: string | undefined; where?: string | undefined; concurrently?: boolean | undefined; }>; foreignKeys: Record; schema: string; compositePrimaryKeys: Record; uniqueConstraints?: Record | undefined; checkConstraints?: Record | undefined; policies?: Record | undefined; isRLSEnabled?: boolean | undefined; }>; id: string; prevId: string; version: "7"; dialect: "postgresql"; schemas: Record; _meta: { columns: Record; tables: Record; schemas: Record; }; enums: Record; internal?: { tables: Record; } | undefined>; } | undefined; views?: Record; schema: string; isExisting: boolean; materialized: boolean; using?: string | undefined; definition?: string | undefined; with?: { checkOption?: "local" | "cascaded" | undefined; securityBarrier?: boolean | undefined; securityInvoker?: boolean | undefined; fillfactor?: number | undefined; toastTupleTarget?: number | undefined; parallelWorkers?: number | undefined; autovacuumEnabled?: boolean | undefined; vacuumIndexCleanup?: "on" | "auto" | "off" | undefined; vacuumTruncate?: boolean | undefined; autovacuumVacuumThreshold?: number | undefined; autovacuumVacuumScaleFactor?: number | undefined; autovacuumVacuumCostDelay?: number | undefined; autovacuumVacuumCostLimit?: number | undefined; autovacuumFreezeMinAge?: number | undefined; autovacuumFreezeMaxAge?: number | undefined; autovacuumFreezeTableAge?: number | undefined; autovacuumMultixactFreezeMinAge?: number | undefined; autovacuumMultixactFreezeMaxAge?: number | undefined; autovacuumMultixactFreezeTableAge?: number | undefined; logAutovacuumMinDuration?: number | undefined; userCatalogTable?: boolean | undefined; } | undefined; withNoData?: boolean | undefined; tablespace?: string | undefined; }> | undefined; policies?: Record | undefined; sequences?: Record | undefined; roles?: Record | undefined; }>; type PgSchema = TypeOf; declare const schema: zod.ZodObject; dialect: zod.ZodEnum<["sqlite"]>; tables: zod.ZodRecord; default: zod.ZodOptional; generated: zod.ZodOptional; as: zod.ZodString; }, "strip", zod.ZodTypeAny, { type: "stored" | "virtual"; as: string; }, { type: "stored" | "virtual"; as: string; }>>; }, "strict", zod.ZodTypeAny, { name: string; type: string; primaryKey: boolean; notNull: boolean; default?: any; autoincrement?: boolean | undefined; generated?: { type: "stored" | "virtual"; as: string; } | undefined; }, { name: string; type: string; primaryKey: boolean; notNull: boolean; default?: any; autoincrement?: boolean | undefined; generated?: { type: "stored" | "virtual"; as: string; } | undefined; }>>; indexes: zod.ZodRecord; where: zod.ZodOptional; isUnique: zod.ZodBoolean; }, "strict", zod.ZodTypeAny, { name: string; columns: string[]; isUnique: boolean; where?: string | undefined; }, { name: string; columns: string[]; isUnique: boolean; where?: string | undefined; }>>; foreignKeys: zod.ZodRecord; tableTo: zod.ZodString; columnsTo: zod.ZodArray; onUpdate: zod.ZodOptional; onDelete: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { name: string; tableFrom: string; columnsFrom: string[]; tableTo: string; columnsTo: string[]; onUpdate?: string | undefined; onDelete?: string | undefined; }, { name: string; tableFrom: string; columnsFrom: string[]; tableTo: string; columnsTo: string[]; onUpdate?: string | undefined; onDelete?: string | undefined; }>>; compositePrimaryKeys: zod.ZodRecord; name: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { columns: string[]; name?: string | undefined; }, { columns: string[]; name?: string | undefined; }>>; uniqueConstraints: zod.ZodDefault; }, "strict", zod.ZodTypeAny, { name: string; columns: string[]; }, { name: string; columns: string[]; }>>>; checkConstraints: zod.ZodDefault>>; }, "strict", zod.ZodTypeAny, { name: string; columns: Record; indexes: Record; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints: Record; checkConstraints: Record; }, { name: string; columns: Record; indexes: Record; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints?: Record | undefined; checkConstraints?: Record | undefined; }>>; views: zod.ZodDefault; default: zod.ZodOptional; generated: zod.ZodOptional; as: zod.ZodString; }, "strip", zod.ZodTypeAny, { type: "stored" | "virtual"; as: string; }, { type: "stored" | "virtual"; as: string; }>>; }, "strict", zod.ZodTypeAny, { name: string; type: string; primaryKey: boolean; notNull: boolean; default?: any; autoincrement?: boolean | undefined; generated?: { type: "stored" | "virtual"; as: string; } | undefined; }, { name: string; type: string; primaryKey: boolean; notNull: boolean; default?: any; autoincrement?: boolean | undefined; generated?: { type: "stored" | "virtual"; as: string; } | undefined; }>>; definition: zod.ZodOptional; isExisting: zod.ZodBoolean; }, "strict", zod.ZodTypeAny, { name: string; columns: Record; isExisting: boolean; definition?: string | undefined; }, { name: string; columns: Record; isExisting: boolean; definition?: string | undefined; }>>>; enums: zod.ZodObject<{}, "strip", zod.ZodTypeAny, {}, {}>; _meta: zod.ZodObject<{ tables: zod.ZodRecord; columns: zod.ZodRecord; }, "strip", zod.ZodTypeAny, { columns: Record; tables: Record; }, { columns: Record; tables: Record; }>; internal: zod.ZodOptional; }, "strip", zod.ZodTypeAny, { isExpression?: boolean | undefined; }, { isExpression?: boolean | undefined; }>>>; }, "strip", zod.ZodTypeAny, { columns: Record; }, { columns: Record; }>>>>; }, "strip", zod.ZodTypeAny, { indexes?: Record; } | undefined> | undefined; }, { indexes?: Record; } | undefined> | undefined; }>>; }, { id: zod.ZodString; prevId: zod.ZodString; }>, "strict", zod.ZodTypeAny, { tables: Record; indexes: Record; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints: Record; checkConstraints: Record; }>; id: string; prevId: string; version: "6"; dialect: "sqlite"; _meta: { columns: Record; tables: Record; }; views: Record; isExisting: boolean; definition?: string | undefined; }>; enums: {}; internal?: { indexes?: Record; } | undefined> | undefined; } | undefined; }, { tables: Record; indexes: Record; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints?: Record | undefined; checkConstraints?: Record | undefined; }>; id: string; prevId: string; version: "6"; dialect: "sqlite"; _meta: { columns: Record; tables: Record; }; enums: {}; internal?: { indexes?: Record; } | undefined> | undefined; } | undefined; views?: Record; isExisting: boolean; definition?: string | undefined; }> | undefined; }>; type SQLiteSchema = TypeOf; type DrizzleSnapshotJSON = PgSchema; type DrizzleSQLiteSnapshotJSON = SQLiteSchema; type DrizzleMySQLSnapshotJSON = MySqlSchema; declare const generateDrizzleJson: (imports: Record, prevId?: string, schemaFilters?: string[], casing?: CasingType) => PgSchema; declare const generateMigration: (prev: DrizzleSnapshotJSON, cur: DrizzleSnapshotJSON) => Promise; declare const pushSchema: (imports: Record, drizzleInstance: PgDatabase, schemaFilters?: string[]) => Promise<{ hasDataLoss: boolean; warnings: string[]; statementsToExecute: string[]; apply: () => Promise; }>; declare const generateSQLiteDrizzleJson: (imports: Record, prevId?: string, casing?: CasingType) => Promise; declare const generateSQLiteMigration: (prev: DrizzleSQLiteSnapshotJSON, cur: DrizzleSQLiteSnapshotJSON) => Promise; declare const pushSQLiteSchema: (imports: Record, drizzleInstance: LibSQLDatabase) => Promise<{ hasDataLoss: boolean; warnings: string[]; statementsToExecute: string[]; apply: () => Promise; }>; declare const generateMySQLDrizzleJson: (imports: Record, prevId?: string, casing?: CasingType) => Promise; declare const generateMySQLMigration: (prev: DrizzleMySQLSnapshotJSON, cur: DrizzleMySQLSnapshotJSON) => Promise; declare const pushMySQLSchema: (imports: Record, drizzleInstance: MySql2Database, databaseName: string) => Promise<{ hasDataLoss: boolean; warnings: string[]; statementsToExecute: string[]; apply: () => Promise; }>; declare const upPgSnapshot: (snapshot: Record) => { version: "7"; dialect: "postgresql"; tables: Record; indexes: Record | undefined; where?: string | undefined; }>; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints: Record; policies: Record; checkConstraints: Record; isRLSEnabled: boolean; }>; policies: Record; enums: Record; schemas: Record; views: Record; materialized: boolean; isExisting: boolean; with?: { checkOption?: "local" | "cascaded" | undefined; securityBarrier?: boolean | undefined; securityInvoker?: boolean | undefined; fillfactor?: number | undefined; toastTupleTarget?: number | undefined; parallelWorkers?: number | undefined; autovacuumEnabled?: boolean | undefined; vacuumIndexCleanup?: "on" | "auto" | "off" | undefined; vacuumTruncate?: boolean | undefined; autovacuumVacuumThreshold?: number | undefined; autovacuumVacuumScaleFactor?: number | undefined; autovacuumVacuumCostDelay?: number | undefined; autovacuumVacuumCostLimit?: number | undefined; autovacuumFreezeMinAge?: number | undefined; autovacuumFreezeMaxAge?: number | undefined; autovacuumFreezeTableAge?: number | undefined; autovacuumMultixactFreezeMinAge?: number | undefined; autovacuumMultixactFreezeMaxAge?: number | undefined; autovacuumMultixactFreezeTableAge?: number | undefined; logAutovacuumMinDuration?: number | undefined; userCatalogTable?: boolean | undefined; } | undefined; using?: string | undefined; definition?: string | undefined; withNoData?: boolean | undefined; tablespace?: string | undefined; }>; sequences: Record; roles: Record; _meta: { tables: Record; columns: Record; schemas: Record; }; id: string; prevId: string; internal?: { tables: Record; } | undefined>; } | undefined; } | Record; export { type DrizzleMySQLSnapshotJSON, type DrizzleSQLiteSnapshotJSON, type DrizzleSnapshotJSON, generateDrizzleJson, generateMigration, generateMySQLDrizzleJson, generateMySQLMigration, generateSQLiteDrizzleJson, generateSQLiteMigration, pushMySQLSchema, pushSQLiteSchema, pushSchema, upPgSnapshot };