import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
import type { ColumnBaseConfig } from "../../column.js";
import { entityKind } from "../../entity.js";
import { type Writable } from "../../utils.js";
import { CockroachColumn, CockroachColumnWithArrayBuilder } from "./common.js";
export type CockroachStringBuilderInitial<TName extends string, TEnum extends [string, ...string[]], TLength extends number | undefined> = CockroachStringBuilder<{
    name: TName;
    dataType: 'string';
    columnType: 'CockroachString';
    data: TEnum[number];
    driverParam: string;
    enumValues: TEnum;
    length: TLength;
}>;
export declare class CockroachStringBuilder<T extends ColumnBuilderBaseConfig<'string', 'CockroachString'> & {
    length?: number | undefined;
}> extends CockroachColumnWithArrayBuilder<T, {
    length: T['length'];
    enumValues: T['enumValues'];
}, {
    length: T['length'];
}> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], config: CockroachStringConfig<T['enumValues'], T['length']>);
}
export declare class CockroachString<T extends ColumnBaseConfig<'string', 'CockroachString'> & {
    length?: number | undefined;
}> extends CockroachColumn<T, {
    length: T['length'];
    enumValues: T['enumValues'];
}, {
    length: T['length'];
}> {
    static readonly [entityKind]: string;
    readonly length: T["length"];
    readonly enumValues: T["enumValues"];
    getSQLType(): string;
}
export interface CockroachStringConfig<TEnum extends readonly string[] | string[] | undefined = readonly string[] | string[] | undefined, TLength extends number | undefined = number | undefined> {
    enum?: TEnum;
    length?: TLength;
}
export interface CockroachTextConfig<TEnum extends readonly string[] | string[] | undefined = readonly string[] | string[] | undefined> {
    enum?: TEnum;
}
export declare function string(): CockroachStringBuilderInitial<'', [string, ...string[]], undefined>;
export declare function string<U extends string, T extends Readonly<[U, ...U[]]>, L extends number | undefined>(config?: CockroachStringConfig<T | Writable<T>, L>): CockroachStringBuilderInitial<'', Writable<T>, L>;
export declare function string<TName extends string, U extends string, T extends Readonly<[U, ...U[]]>, L extends number | undefined>(name: TName, config?: CockroachStringConfig<T | Writable<T>, L>): CockroachStringBuilderInitial<TName, Writable<T>, L>;
export declare function text(): CockroachStringBuilderInitial<'', [string, ...string[]], undefined>;
export declare function text<U extends string, T extends Readonly<[U, ...U[]]>>(config?: CockroachTextConfig<T | Writable<T>>): CockroachStringBuilderInitial<'', Writable<T>, undefined>;
export declare function text<TName extends string, U extends string, T extends Readonly<[U, ...U[]]>>(name: TName, config?: CockroachTextConfig<T | Writable<T>>): CockroachStringBuilderInitial<TName, Writable<T>, undefined>;
