import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
import type { ColumnBaseConfig } from "../../column.js";
import { entityKind } from "../../entity.js";
import { type Equal } from "../../utils.js";
import { CockroachColumn } from "./common.js";
import { CockroachDateColumnBaseBuilder } from "./date.common.js";
export type CockroachDateBuilderInitial<TName extends string> = CockroachDateBuilder<{
    name: TName;
    dataType: 'date';
    columnType: 'CockroachDate';
    data: Date;
    driverParam: string;
    enumValues: undefined;
}>;
export declare class CockroachDateBuilder<T extends ColumnBuilderBaseConfig<'date', 'CockroachDate'>> extends CockroachDateColumnBaseBuilder<T> {
    static readonly [entityKind]: string;
    constructor(name: T['name']);
}
export declare class CockroachDate<T extends ColumnBaseConfig<'date', 'CockroachDate'>> extends CockroachColumn<T> {
    static readonly [entityKind]: string;
    getSQLType(): string;
    mapFromDriverValue(value: string): Date;
    mapToDriverValue(value: Date): string;
}
export type CockroachDateStringBuilderInitial<TName extends string> = CockroachDateStringBuilder<{
    name: TName;
    dataType: 'string';
    columnType: 'CockroachDateString';
    data: string;
    driverParam: string;
    enumValues: undefined;
}>;
export declare class CockroachDateStringBuilder<T extends ColumnBuilderBaseConfig<'string', 'CockroachDateString'>> extends CockroachDateColumnBaseBuilder<T> {
    static readonly [entityKind]: string;
    constructor(name: T['name']);
}
export declare class CockroachDateString<T extends ColumnBaseConfig<'string', 'CockroachDateString'>> extends CockroachColumn<T> {
    static readonly [entityKind]: string;
    getSQLType(): string;
}
export interface CockroachDateConfig<T extends 'date' | 'string' = 'date' | 'string'> {
    mode: T;
}
export declare function date(): CockroachDateStringBuilderInitial<''>;
export declare function date<TMode extends CockroachDateConfig['mode'] & {}>(config?: CockroachDateConfig<TMode>): Equal<TMode, 'date'> extends true ? CockroachDateBuilderInitial<''> : CockroachDateStringBuilderInitial<''>;
export declare function date<TName extends string, TMode extends CockroachDateConfig['mode'] & {}>(name: TName, config?: CockroachDateConfig<TMode>): Equal<TMode, 'date'> extends true ? CockroachDateBuilderInitial<TName> : CockroachDateStringBuilderInitial<TName>;
