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