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 CockroachVarcharBuilderInitial<TName extends string, TEnum extends [string, ...string[]], TLength extends number | undefined> = CockroachVarcharBuilder<{
    name: TName;
    dataType: 'string';
    columnType: 'CockroachVarchar';
    data: TEnum[number];
    driverParam: string;
    enumValues: TEnum;
    length: TLength;
}>;
export declare class CockroachVarcharBuilder<T extends ColumnBuilderBaseConfig<'string', 'CockroachVarchar'> & {
    length?: number | undefined;
}> extends CockroachColumnWithArrayBuilder<T, {
    length: T['length'];
    enumValues: T['enumValues'];
}, {
    length: T['length'];
}> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], config: CockroachVarcharConfig<T['enumValues'], T['length']>);
}
export declare class CockroachVarchar<T extends ColumnBaseConfig<'string', 'CockroachVarchar'> & {
    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 CockroachVarcharConfig<TEnum extends readonly string[] | string[] | undefined = readonly string[] | string[] | undefined, TLength extends number | undefined = number | undefined> {
    enum?: TEnum;
    length?: TLength;
}
export declare function varchar(): CockroachVarcharBuilderInitial<'', [string, ...string[]], undefined>;
export declare function varchar<U extends string, T extends Readonly<[U, ...U[]]>, L extends number | undefined>(config?: CockroachVarcharConfig<T | Writable<T>, L>): CockroachVarcharBuilderInitial<'', Writable<T>, L>;
export declare function varchar<TName extends string, U extends string, T extends Readonly<[U, ...U[]]>, L extends number | undefined>(name: TName, config?: CockroachVarcharConfig<T | Writable<T>, L>): CockroachVarcharBuilderInitial<TName, Writable<T>, L>;
