import type { AnyCockroachTable } from "../table.js";
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 CockroachTimestampBuilderInitial<TName extends string> = CockroachTimestampBuilder<{
    name: TName;
    dataType: 'date';
    columnType: 'CockroachTimestamp';
    data: Date;
    driverParam: string;
    enumValues: undefined;
}>;
export declare class CockroachTimestampBuilder<T extends ColumnBuilderBaseConfig<'date', 'CockroachTimestamp'>> extends CockroachDateColumnBaseBuilder<T, {
    withTimezone: boolean;
    precision: number | undefined;
}> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], withTimezone: boolean, precision: number | undefined);
}
export declare class CockroachTimestamp<T extends ColumnBaseConfig<'date', 'CockroachTimestamp'>> extends CockroachColumn<T> {
    static readonly [entityKind]: string;
    readonly withTimezone: boolean;
    readonly precision: number | undefined;
    constructor(table: AnyCockroachTable<{
        name: T['tableName'];
    }>, config: CockroachTimestampBuilder<T>['config']);
    getSQLType(): string;
    mapFromDriverValue: (value: string) => Date | null;
    mapToDriverValue: (value: Date) => string;
}
export type CockroachTimestampStringBuilderInitial<TName extends string> = CockroachTimestampStringBuilder<{
    name: TName;
    dataType: 'string';
    columnType: 'CockroachTimestampString';
    data: string;
    driverParam: string;
    enumValues: undefined;
}>;
export declare class CockroachTimestampStringBuilder<T extends ColumnBuilderBaseConfig<'string', 'CockroachTimestampString'>> extends CockroachDateColumnBaseBuilder<T, {
    withTimezone: boolean;
    precision: number | undefined;
}> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], withTimezone: boolean, precision: number | undefined);
}
export declare class CockroachTimestampString<T extends ColumnBaseConfig<'string', 'CockroachTimestampString'>> extends CockroachColumn<T> {
    static readonly [entityKind]: string;
    readonly withTimezone: boolean;
    readonly precision: number | undefined;
    constructor(table: AnyCockroachTable<{
        name: T['tableName'];
    }>, config: CockroachTimestampStringBuilder<T>['config']);
    getSQLType(): string;
}
export type Precision = 0 | 1 | 2 | 3 | 4 | 5 | 6;
export interface CockroachTimestampConfig<TMode extends 'date' | 'string' = 'date' | 'string'> {
    mode?: TMode;
    precision?: Precision;
    withTimezone?: boolean;
}
export declare function timestamp(): CockroachTimestampBuilderInitial<''>;
export declare function timestamp<TMode extends CockroachTimestampConfig['mode'] & {}>(config?: CockroachTimestampConfig<TMode>): Equal<TMode, 'string'> extends true ? CockroachTimestampStringBuilderInitial<''> : CockroachTimestampBuilderInitial<''>;
export declare function timestamp<TName extends string, TMode extends CockroachTimestampConfig['mode'] & {}>(name: TName, config?: CockroachTimestampConfig<TMode>): Equal<TMode, 'string'> extends true ? CockroachTimestampStringBuilderInitial<TName> : CockroachTimestampBuilderInitial<TName>;
