import * as drizzle_orm from 'drizzle-orm'; import { AnyPgTable, PgEnum, PgSchema, PgSequence, PgView, PgMaterializedView, PgRole, PgPolicy } from 'drizzle-orm/pg-core'; import { D as DrizzleLab } from './symbols-CdI5QtS4.cjs'; import { D as DrizzleSchema } from './global-v_LCR4XD.cjs'; import { Relations } from 'drizzle-orm/relations'; import { P as PartialConfig } from './loader.node-Bo9Dqnt1.cjs'; import * as zod from 'zod'; import { TypeOf } from 'zod'; type DrizzleObjects = Omit, typeof DrizzleLab>; /** * Map the Drizzle objects from the Drizzle schema. * @param drizzleSchema - The Drizzle schema to map the objects from. * @returns Drizzle objects */ declare function schemaToDrizzleObjects(drizzleSchema: DrizzleSchema): { tables: AnyPgTable[]; enums: PgEnum[]; schemas: PgSchema[]; sequences: PgSequence[]; views: PgView[]; matViews: PgMaterializedView[]; roles: PgRole[]; policies: PgPolicy[]; relations: drizzle_orm.TableRelationalConfig[]; [DrizzleLab]: { drizzleRelations: Relations>>[]; }; }; declare const pgSchemaInternal: zod.ZodObject<{ version: zod.ZodLiteral<"7">; 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, { type: "always" | "byDefault"; name: string; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; }, { type: "always" | "byDefault"; name: string; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; }>>; enumValues: zod.ZodOptional>; defaultFn: zod.ZodOptional; onUpdateFn: zod.ZodOptional; description: zod.ZodOptional; jsonShape: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { type: string; name: string; notNull: boolean; primaryKey: boolean; enumValues?: string[] | undefined; description?: string | undefined; identity?: { type: "always" | "byDefault"; name: string; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; } | undefined; generated?: { type: "stored"; as: string; } | undefined; isUnique?: any; default?: any; typeSchema?: string | undefined; uniqueName?: string | undefined; nullsNotDistinct?: boolean | undefined; defaultFn?: string | undefined; onUpdateFn?: string | undefined; jsonShape?: string | undefined; }, { type: string; name: string; notNull: boolean; primaryKey: boolean; enumValues?: string[] | undefined; description?: string | undefined; identity?: { type: "always" | "byDefault"; name: string; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; } | undefined; generated?: { type: "stored"; as: string; } | undefined; isUnique?: any; default?: any; typeSchema?: string | undefined; uniqueName?: string | undefined; nullsNotDistinct?: boolean | undefined; defaultFn?: string | undefined; onUpdateFn?: string | undefined; jsonShape?: string | undefined; }>>; indexes: zod.ZodRecord; opclass: zod.ZodOptional; }, "strip", zod.ZodTypeAny, { expression: string; isExpression: boolean; asc: boolean; nulls?: string | undefined; opclass?: string | undefined; }, { expression: string; isExpression: boolean; 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: { expression: string; isExpression: boolean; asc: boolean; nulls?: string | undefined; opclass?: string | undefined; }[]; isUnique: boolean; method: string; concurrently: boolean; with?: Record | undefined; where?: string | undefined; }, { name: string; columns: { expression: string; isExpression: boolean; 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[]; onDelete?: string | undefined; onUpdate?: string | undefined; schemaTo?: string | undefined; }, { name: string; tableFrom: string; columnsFrom: string[]; tableTo: string; columnsTo: string[]; onDelete?: string | undefined; onUpdate?: 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.ZodDefault>>; to: zod.ZodOptional>; using: zod.ZodOptional; withCheck: zod.ZodOptional; on: zod.ZodOptional; schema: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { name: string; as: "PERMISSIVE" | "RESTRICTIVE"; for: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE"; schema?: string | undefined; to?: string[] | undefined; using?: string | undefined; withCheck?: string | undefined; on?: string | undefined; }, { name: string; schema?: string | undefined; as?: "PERMISSIVE" | "RESTRICTIVE" | undefined; for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined; to?: string[] | undefined; using?: string | undefined; withCheck?: string | undefined; on?: string | undefined; }>>>; checkConstraints: zod.ZodDefault>>; isRLSEnabled: zod.ZodDefault; relations: zod.ZodDefault; fieldName: zod.ZodString; relationName: zod.ZodString; referencedTableName: zod.ZodString; }, "strict", zod.ZodTypeAny, { type: "many" | "one"; fieldName: string; relationName: string; referencedTableName: string; }, { type: "many" | "one"; fieldName: string; relationName: string; referencedTableName: string; }>, "many">>; description: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { name: string; schema: string; columns: Record; policies: Record; relations: { type: "many" | "one"; fieldName: string; relationName: string; referencedTableName: string; }[]; indexes: Record | undefined; where?: string | undefined; }>; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints: Record; checkConstraints: Record; isRLSEnabled: boolean; description?: string | undefined; }, { name: string; schema: string; columns: Record; indexes: Record | undefined; method?: string | undefined; where?: string | undefined; concurrently?: boolean | undefined; }>; foreignKeys: Record; compositePrimaryKeys: Record; description?: string | undefined; policies?: Record | undefined; relations?: { type: "many" | "one"; fieldName: string; relationName: string; referencedTableName: string; }[] | undefined; uniqueConstraints?: Record | undefined; checkConstraints?: Record | undefined; isRLSEnabled?: boolean | undefined; }>>; enums: zod.ZodRecord; }, "strict", zod.ZodTypeAny, { values: string[]; name: string; schema: string; }, { values: string[]; name: 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, { type: "always" | "byDefault"; name: string; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; }, { type: "always" | "byDefault"; name: string; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; }>>; enumValues: zod.ZodOptional>; defaultFn: zod.ZodOptional; onUpdateFn: zod.ZodOptional; description: zod.ZodOptional; jsonShape: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { type: string; name: string; notNull: boolean; primaryKey: boolean; enumValues?: string[] | undefined; description?: string | undefined; identity?: { type: "always" | "byDefault"; name: string; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; } | undefined; generated?: { type: "stored"; as: string; } | undefined; isUnique?: any; default?: any; typeSchema?: string | undefined; uniqueName?: string | undefined; nullsNotDistinct?: boolean | undefined; defaultFn?: string | undefined; onUpdateFn?: string | undefined; jsonShape?: string | undefined; }, { type: string; name: string; notNull: boolean; primaryKey: boolean; enumValues?: string[] | undefined; description?: string | undefined; identity?: { type: "always" | "byDefault"; name: string; schema: string; increment?: string | undefined; minValue?: string | undefined; maxValue?: string | undefined; startWith?: string | undefined; cache?: string | undefined; cycle?: boolean | undefined; } | undefined; generated?: { type: "stored"; as: string; } | undefined; isUnique?: any; default?: any; typeSchema?: string | undefined; uniqueName?: string | undefined; nullsNotDistinct?: boolean | undefined; defaultFn?: string | undefined; onUpdateFn?: string | undefined; jsonShape?: string | 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; description: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { name: string; schema: string; columns: Record; materialized: boolean; isExisting: boolean; description?: 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; using?: string | undefined; definition?: string | undefined; withNoData?: boolean | undefined; tablespace?: string | undefined; }, { name: string; schema: string; columns: Record; materialized: boolean; isExisting: boolean; description?: 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; using?: string | undefined; definition?: string | 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.ZodDefault>>; to: zod.ZodOptional>; using: zod.ZodOptional; withCheck: zod.ZodOptional; on: zod.ZodOptional; schema: zod.ZodOptional; }, "strict", zod.ZodTypeAny, { name: string; as: "PERMISSIVE" | "RESTRICTIVE"; for: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE"; schema?: string | undefined; to?: string[] | undefined; using?: string | undefined; withCheck?: string | undefined; on?: string | undefined; }, { name: string; schema?: string | undefined; as?: "PERMISSIVE" | "RESTRICTIVE" | undefined; for?: "ALL" | "SELECT" | "INSERT" | "UPDATE" | "DELETE" | undefined; to?: string[] | undefined; using?: 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, { isArray?: boolean | undefined; dimensions?: number | undefined; rawType?: string | undefined; isDefaultAnExpression?: boolean | undefined; }, { isArray?: boolean | undefined; dimensions?: number | undefined; rawType?: string | undefined; isDefaultAnExpression?: boolean | undefined; }>>>; }, "strip", zod.ZodTypeAny, { columns: Record; }, { columns: Record; }>>>; }, "strip", zod.ZodTypeAny, { tables: Record; } | undefined>; }, { tables: Record; } | undefined>; }>>; provider: zod.ZodOptional>; projectId: zod.ZodDefault>; }, "strict", zod.ZodTypeAny, { dialect: "postgresql"; tables: Record; policies: Record; relations: { type: "many" | "one"; fieldName: string; relationName: string; referencedTableName: string; }[]; indexes: Record | undefined; where?: string | undefined; }>; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints: Record; checkConstraints: Record; isRLSEnabled: boolean; description?: string | undefined; }>; enums: Record; schemas: Record; sequences: Record; views: Record; materialized: boolean; isExisting: boolean; description?: 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; using?: string | undefined; definition?: string | undefined; withNoData?: boolean | undefined; tablespace?: string | undefined; }>; roles: Record; policies: Record; projectId: string; version: "7"; _meta: { columns: Record; tables: Record; schemas: Record; }; provider?: "supabase" | "neon" | undefined; internal?: { tables: Record; } | undefined>; } | undefined; }, { dialect: "postgresql"; tables: Record; indexes: Record | undefined; method?: string | undefined; where?: string | undefined; concurrently?: boolean | undefined; }>; foreignKeys: Record; compositePrimaryKeys: Record; description?: string | undefined; policies?: Record | undefined; relations?: { type: "many" | "one"; fieldName: string; relationName: string; referencedTableName: string; }[] | undefined; uniqueConstraints?: Record | undefined; checkConstraints?: Record | undefined; isRLSEnabled?: boolean | undefined; }>; enums: Record; schemas: Record; version: "7"; _meta: { columns: Record; tables: Record; schemas: Record; }; sequences?: Record | undefined; views?: Record; materialized: boolean; isExisting: boolean; description?: 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; using?: string | undefined; definition?: string | undefined; withNoData?: boolean | undefined; tablespace?: string | undefined; }> | undefined; roles?: Record | undefined; policies?: Record | undefined; provider?: "supabase" | "neon" | undefined; projectId?: string | undefined; internal?: { tables: Record; } | undefined>; } | undefined; }>; type PgSchemaInternal = TypeOf; type Snapshot = PgSchemaInternal; declare function schemaToSnapshot(schema: DrizzleSchema, config?: PartialConfig): { dialect: "postgresql"; tables: Record; policies: Record; relations: { type: "many" | "one"; fieldName: string; relationName: string; referencedTableName: string; }[]; indexes: Record | undefined; where?: string | undefined; }>; foreignKeys: Record; compositePrimaryKeys: Record; uniqueConstraints: Record; checkConstraints: Record; isRLSEnabled: boolean; description?: string | undefined; }>; enums: Record; schemas: Record; sequences: Record; views: Record; materialized: boolean; isExisting: boolean; description?: 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; using?: string | undefined; definition?: string | undefined; withNoData?: boolean | undefined; tablespace?: string | undefined; }>; roles: Record; policies: Record; projectId: string; version: "7"; _meta: { columns: Record; tables: Record; schemas: Record; }; provider?: "supabase" | "neon" | undefined; internal?: { tables: Record; } | undefined>; } | undefined; }; /** * Generate a snapshot from the Drizzle objects. * @param drizzleObjects - The Drizzle objects to generate a snapshot from. * @param config - The Drizzle configuration to use for the snapshot. * @returns A snapshot of the Drizzle objects. */ declare function drizzleObjectsToSnapshot({ tables, enums, schemas, sequences, roles, policies, views, matViews, relations, }: DrizzleObjects, config?: PartialConfig): Snapshot; export { type DrizzleObjects as D, type Snapshot as S, schemaToSnapshot as a, drizzleObjectsToSnapshot as d, schemaToDrizzleObjects as s };