import { ColumnBuilderBaseConfig, entityKind, MakeColumnConfig, HasDefault, ColumnBaseConfig, ColumnBuilderRuntimeConfig } from 'drizzle-orm'; import { PgColumnBuilder, AnyPgTable, PgColumn } from 'drizzle-orm/pg-core'; type PgCuid2Config = { length: number; prefix?: string; }; type PgCuid2BuilderInitial = Omit, 'default' | '$default' | '$defaultFn'>; declare class PgCuid2Builder> extends PgColumnBuilder { static readonly [entityKind]: string; private length; private prefix?; constructor(name: T['name']); build(table: AnyPgTable<{ name: TTableName; }>): PgCuid2>; /*** * Creates a random `cuid2` value as the default value for the column. * The function will be called when the row is inserted, and the returned value will be used as the column value. */ defaultRandom(): HasDefault; /*** * Sets the length of the CUID2 value. * @param length The length of the CUID2 value (default: 24) */ setLength(length: number): this; /*** * Sets the prefix for the CUID2 value. * @param prefix The prefix to prepend to the CUID2 value */ setPrefix(prefix: string): this; } declare class PgCuid2> extends PgColumn { static readonly [entityKind]: string; private length; private prefix?; constructor(table: AnyPgTable<{ name: string; }>, config: ColumnBuilderRuntimeConfig, length: number, prefix?: string); getSQLType(): string; } declare function cuid2(): PgCuid2BuilderInitial<''>; declare function cuid2(name: TName): PgCuid2BuilderInitial; export { PgCuid2, PgCuid2Builder, type PgCuid2BuilderInitial, type PgCuid2Config, cuid2 };