import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
import type { ColumnBaseConfig } from "../../column.js";
import { entityKind } from "../../entity.js";
import type { AnyMsSqlTable } from "../table.js";
import { type Equal } from "../../utils.js";
import { MsSqlColumn } from "./common.js";
import { MsSqlDateColumnBaseBuilder } from "./date.common.js";
export type MsSqlDateBuilderInitial<TName extends string> = MsSqlDateBuilder<{
    name: TName;
    dataType: 'date';
    columnType: 'MsSqlDate';
    data: Date;
    driverParam: string | number;
    enumValues: undefined;
    generated: undefined;
}>;
export declare class MsSqlDateBuilder<T extends ColumnBuilderBaseConfig<'date', 'MsSqlDate'>> extends MsSqlDateColumnBaseBuilder<T> {
    static readonly [entityKind]: string;
    constructor(name: T['name']);
}
export declare class MsSqlDate<T extends ColumnBaseConfig<'date', 'MsSqlDate'>> extends MsSqlColumn<T> {
    static readonly [entityKind]: string;
    constructor(table: AnyMsSqlTable<{
        name: T['tableName'];
    }>, config: MsSqlDateBuilder<T>['config']);
    getSQLType(): string;
    mapFromDriverValue(value: Date | string): Date;
}
export type MsSqlDateStringBuilderInitial<TName extends string> = MsSqlDateStringBuilder<{
    name: TName;
    dataType: 'string';
    columnType: 'MsSqlDateString';
    data: string;
    driverParam: string | number;
    enumValues: undefined;
    generated: undefined;
}>;
export declare class MsSqlDateStringBuilder<T extends ColumnBuilderBaseConfig<'string', 'MsSqlDateString'>> extends MsSqlDateColumnBaseBuilder<T> {
    static readonly [entityKind]: string;
    constructor(name: T['name']);
}
export declare class MsSqlDateString<T extends ColumnBaseConfig<'string', 'MsSqlDateString'>> extends MsSqlColumn<T> {
    static readonly [entityKind]: string;
    constructor(table: AnyMsSqlTable<{
        name: T['tableName'];
    }>, config: MsSqlDateStringBuilder<T>['config']);
    getSQLType(): string;
    mapFromDriverValue(value: Date | string | null): string | null;
}
export interface MsSqlDateConfig<TMode extends 'date' | 'string' = 'date' | 'string'> {
    mode?: TMode;
}
export declare function date(): MsSqlDateBuilderInitial<''>;
export declare function date<TMode extends MsSqlDateConfig['mode'] & {}>(config?: MsSqlDateConfig<TMode>): Equal<TMode, 'string'> extends true ? MsSqlDateStringBuilderInitial<''> : MsSqlDateBuilderInitial<''>;
export declare function date<TName extends string, TMode extends MsSqlDateConfig['mode'] & {}>(name: TName, config?: MsSqlDateConfig<TMode>): Equal<TMode, 'string'> extends true ? MsSqlDateStringBuilderInitial<TName> : MsSqlDateBuilderInitial<TName>;
