import { SQL } from 'drizzle-orm'; import { type ZodTypeDef, z } from 'zod'; import { type SerializedSQL } from '../runtime/types.js'; import type { NumberColumn, TextColumn } from './types.js'; export type MaybeArray = T | T[]; export declare const booleanColumnSchema: z.ZodObject<{ type: z.ZodLiteral<"boolean">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>]>>; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: boolean | SerializedSQL | undefined; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: boolean | SQL | undefined; }>; }, "strip", z.ZodTypeAny, { type: "boolean"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: boolean | SerializedSQL | undefined; }; }, { type: "boolean"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: boolean | SQL | undefined; }; }>; declare const numberColumnBaseSchema: z.ZodIntersection; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, "optional">, "strip", z.ZodTypeAny, { unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; }, { name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; }>, z.ZodUnion<[z.ZodObject<{ primaryKey: z.ZodDefault>>; optional: z.ZodDefault>; default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>]>>; }, "strip", z.ZodTypeAny, { optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; }, { optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; }>, z.ZodObject<{ primaryKey: z.ZodLiteral; optional: z.ZodOptional>; default: z.ZodOptional>; }, "strip", z.ZodTypeAny, { primaryKey: true; optional?: false | undefined; default?: undefined; }, { primaryKey: true; optional?: false | undefined; default?: undefined; }>]>>; export declare const numberColumnOptsSchema: z.ZodType & { references?: NumberColumn; }, ZodTypeDef, z.input & { references?: () => z.input; }>; export declare const numberColumnSchema: z.ZodObject<{ type: z.ZodLiteral<"number">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "number"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }; }, { type: "number"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }; }>; declare const textColumnBaseSchema: z.ZodIntersection; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, "optional">, { default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>]>>; multiline: z.ZodOptional; }>, "strip", z.ZodTypeAny, { unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; }, { name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; }>, z.ZodUnion<[z.ZodObject<{ primaryKey: z.ZodDefault>>; optional: z.ZodDefault>; }, "strip", z.ZodTypeAny, { optional: boolean; primaryKey: false; }, { optional?: boolean | undefined; primaryKey?: false | undefined; }>, z.ZodObject<{ primaryKey: z.ZodLiteral; optional: z.ZodOptional>; }, "strip", z.ZodTypeAny, { primaryKey: true; optional?: false | undefined; }, { primaryKey: true; optional?: false | undefined; }>]>>; export declare const textColumnOptsSchema: z.ZodType & { references?: TextColumn; }, ZodTypeDef, z.input & { references?: () => z.input; }>; export declare const textColumnSchema: z.ZodObject<{ type: z.ZodLiteral<"text">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "text"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }; }, { type: "text"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }; }>; export declare const dateColumnSchema: z.ZodObject<{ type: z.ZodLiteral<"date">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>, z.ZodEffects]>>; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }>; }, "strip", z.ZodTypeAny, { type: "date"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; }; }, { type: "date"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }; }>; export declare const jsonColumnSchema: z.ZodObject<{ type: z.ZodLiteral<"json">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: unknown; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }>; }, "strip", z.ZodTypeAny, { type: "json"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: unknown; }; }, { type: "json"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }; }>; export declare const columnSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{ type: z.ZodLiteral<"boolean">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>]>>; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: boolean | SerializedSQL | undefined; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: boolean | SQL | undefined; }>; }, "strip", z.ZodTypeAny, { type: "boolean"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: boolean | SerializedSQL | undefined; }; }, { type: "boolean"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: boolean | SQL | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"number">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "number"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }; }, { type: "number"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }; }>, z.ZodObject<{ type: z.ZodLiteral<"text">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "text"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }; }, { type: "text"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }; }>, z.ZodObject<{ type: z.ZodLiteral<"date">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>, z.ZodEffects]>>; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }>; }, "strip", z.ZodTypeAny, { type: "date"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; }; }, { type: "date"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"json">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: unknown; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }>; }, "strip", z.ZodTypeAny, { type: "json"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: unknown; }; }, { type: "json"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }; }>]>; export declare const referenceableColumnSchema: z.ZodUnion<[z.ZodObject<{ type: z.ZodLiteral<"text">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "text"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }; }, { type: "text"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }; }>, z.ZodObject<{ type: z.ZodLiteral<"number">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "number"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }; }, { type: "number"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }; }>]>; export declare const columnsSchema: z.ZodRecord; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>]>>; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: boolean | SerializedSQL | undefined; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: boolean | SQL | undefined; }>; }, "strip", z.ZodTypeAny, { type: "boolean"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: boolean | SerializedSQL | undefined; }; }, { type: "boolean"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: boolean | SQL | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"number">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "number"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }; }, { type: "number"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }; }>, z.ZodObject<{ type: z.ZodLiteral<"text">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "text"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }; }, { type: "text"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }; }>, z.ZodObject<{ type: z.ZodLiteral<"date">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>, z.ZodEffects]>>; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }>; }, "strip", z.ZodTypeAny, { type: "date"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; }; }, { type: "date"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"json">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: unknown; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }>; }, "strip", z.ZodTypeAny, { type: "json"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: unknown; }; }, { type: "json"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }; }>]>>; type ForeignKeysInput = { columns: MaybeArray; references: () => MaybeArray, 'references'>>; }; type ForeignKeysOutput = Omit & { references: MaybeArray, 'references'>>; }; export declare const resolvedIndexSchema: z.ZodObject<{ on: z.ZodUnion<[z.ZodString, z.ZodArray]>; unique: z.ZodOptional; }, "strip", z.ZodTypeAny, { on: string | string[]; unique?: boolean | undefined; }, { on: string | string[]; unique?: boolean | undefined; }>; export declare const indexSchema: z.ZodObject<{ on: z.ZodUnion<[z.ZodString, z.ZodArray]>; unique: z.ZodOptional; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }, { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }>; export declare const tableSchema: z.ZodObject<{ columns: z.ZodRecord; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>]>>; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: boolean | SerializedSQL | undefined; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: boolean | SQL | undefined; }>; }, "strip", z.ZodTypeAny, { type: "boolean"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: boolean | SerializedSQL | undefined; }; }, { type: "boolean"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: boolean | SQL | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"number">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "number"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }; }, { type: "number"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }; }>, z.ZodObject<{ type: z.ZodLiteral<"text">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "text"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }; }, { type: "text"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }; }>, z.ZodObject<{ type: z.ZodLiteral<"date">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>, z.ZodEffects]>>; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }>; }, "strip", z.ZodTypeAny, { type: "date"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; }; }, { type: "date"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"json">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: unknown; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }>; }, "strip", z.ZodTypeAny, { type: "json"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: unknown; }; }, { type: "json"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }; }>]>>; indexes: z.ZodOptional]>; unique: z.ZodOptional; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }, { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }>, "many">, z.ZodRecord]>; unique: z.ZodOptional; }, "strip", z.ZodTypeAny, { on: string | string[]; unique?: boolean | undefined; }, { on: string | string[]; unique?: boolean | undefined; }>>]>>; foreignKeys: z.ZodOptional, "many">>; deprecated: z.ZodDefault>; }, "strip", z.ZodTypeAny, { deprecated: boolean; columns: Record; indexes?: { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }[] | Record | undefined; foreignKeys?: ForeignKeysOutput[] | undefined; }, { columns: Record | undefined; }; } | { type: "number"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }; } | { type: "text"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }; } | { type: "date"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }; } | { type: "json"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }; }>; deprecated?: boolean | undefined; indexes?: { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }[] | Record | undefined; foreignKeys?: ForeignKeysInput[] | undefined; }>; export declare const tablesSchema: z.ZodEffects; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>]>>; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: boolean | SerializedSQL | undefined; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: boolean | SQL | undefined; }>; }, "strip", z.ZodTypeAny, { type: "boolean"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: boolean | SerializedSQL | undefined; }; }, { type: "boolean"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: boolean | SQL | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"number">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "number"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }; }, { type: "number"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }; }>, z.ZodObject<{ type: z.ZodLiteral<"text">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "text"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }; }, { type: "text"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }; }>, z.ZodObject<{ type: z.ZodLiteral<"date">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>, z.ZodEffects]>>; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }>; }, "strip", z.ZodTypeAny, { type: "date"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; }; }, { type: "date"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"json">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: unknown; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }>; }, "strip", z.ZodTypeAny, { type: "json"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: unknown; }; }, { type: "json"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }; }>]>>; indexes: z.ZodOptional]>; unique: z.ZodOptional; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }, { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }>, "many">, z.ZodRecord]>; unique: z.ZodOptional; }, "strip", z.ZodTypeAny, { on: string | string[]; unique?: boolean | undefined; }, { on: string | string[]; unique?: boolean | undefined; }>>]>>; foreignKeys: z.ZodOptional, "many">>; deprecated: z.ZodDefault>; }, "strip", z.ZodTypeAny, { deprecated: boolean; columns: Record; indexes?: { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }[] | Record | undefined; foreignKeys?: ForeignKeysOutput[] | undefined; }, { columns: Record | undefined; }; } | { type: "number"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }; } | { type: "text"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }; } | { type: "date"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }; } | { type: "json"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }; }>; deprecated?: boolean | undefined; indexes?: { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }[] | Record | undefined; foreignKeys?: ForeignKeysInput[] | undefined; }>>, Record; indexes?: { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }[] | Record | undefined; foreignKeys?: ForeignKeysOutput[] | undefined; }>, unknown>; export declare const dbConfigSchema: z.ZodEffects; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>]>>; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: boolean | SerializedSQL | undefined; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: boolean | SQL | undefined; }>; }, "strip", z.ZodTypeAny, { type: "boolean"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: boolean | SerializedSQL | undefined; }; }, { type: "boolean"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: boolean | SQL | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"number">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "number"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; } & ({ optional: boolean; primaryKey: false; default?: number | SerializedSQL | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: NumberColumn; }; }, { type: "number"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }; }>, z.ZodObject<{ type: z.ZodLiteral<"text">; schema: z.ZodType<({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }, ZodTypeDef, ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }>; }, "strip", z.ZodTypeAny, { type: "text"; schema: ({ unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; multiline?: boolean | undefined; } & ({ optional: boolean; primaryKey: false; } | { primaryKey: true; optional?: false | undefined; })) & { references?: TextColumn; }; }, { type: "text"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }; }>, z.ZodObject<{ type: z.ZodLiteral<"date">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional, ZodTypeDef, SQL>, SerializedSQL, SQL>, z.ZodEffects]>>; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }>; }, "strip", z.ZodTypeAny, { type: "date"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: string | SerializedSQL | undefined; }; }, { type: "date"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }; }>, z.ZodObject<{ type: z.ZodLiteral<"json">; schema: z.ZodObject; optional: z.ZodDefault>; unique: z.ZodDefault>; deprecated: z.ZodDefault>; name: z.ZodOptional; collection: z.ZodOptional; }, { default: z.ZodOptional; }>, "strip", z.ZodTypeAny, { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: unknown; }, { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }>; }, "strip", z.ZodTypeAny, { type: "json"; schema: { optional: boolean; unique: boolean; deprecated: boolean; name?: string | undefined; label?: string | undefined; collection?: string | undefined; default?: unknown; }; }, { type: "json"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }; }>]>>; indexes: z.ZodOptional]>; unique: z.ZodOptional; name: z.ZodOptional; }, "strip", z.ZodTypeAny, { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }, { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }>, "many">, z.ZodRecord]>; unique: z.ZodOptional; }, "strip", z.ZodTypeAny, { on: string | string[]; unique?: boolean | undefined; }, { on: string | string[]; unique?: boolean | undefined; }>>]>>; foreignKeys: z.ZodOptional, "many">>; deprecated: z.ZodDefault>; }, "strip", z.ZodTypeAny, { deprecated: boolean; columns: Record; indexes?: { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }[] | Record | undefined; foreignKeys?: ForeignKeysOutput[] | undefined; }, { columns: Record | undefined; }; } | { type: "number"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; } & ({ optional?: boolean | undefined; default?: number | SQL | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; default?: undefined; })) & { references?: () => z.input; }; } | { type: "text"; schema: ({ name?: string | undefined; label?: string | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: string | SQL | undefined; multiline?: boolean | undefined; } & ({ optional?: boolean | undefined; primaryKey?: false | undefined; } | { primaryKey: true; optional?: false | undefined; })) & { references?: () => z.input; }; } | { type: "date"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: Date | SQL | undefined; }; } | { type: "json"; schema: { name?: string | undefined; label?: string | undefined; optional?: boolean | undefined; unique?: boolean | undefined; deprecated?: boolean | undefined; collection?: string | undefined; default?: unknown; }; }>; deprecated?: boolean | undefined; indexes?: { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }[] | Record | undefined; foreignKeys?: ForeignKeysInput[] | undefined; }>>, Record; indexes?: { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }[] | Record | undefined; foreignKeys?: ForeignKeysOutput[] | undefined; }>, unknown>>; }, "strip", z.ZodTypeAny, { tables?: Record; indexes?: { on: string | string[]; name?: string | undefined; unique?: boolean | undefined; }[] | Record | undefined; foreignKeys?: ForeignKeysOutput[] | undefined; }> | undefined; }, { tables?: unknown; }>, { tables: Record; deprecated: boolean; columns: Record; foreignKeys?: ForeignKeysOutput[] | undefined; }>; }, { tables?: unknown; }>; export {};