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 MsSqlDateTimeBuilderInitial<TName extends string> = MsSqlDateTimeBuilder<{
    name: TName;
    dataType: 'date';
    columnType: 'MsSqlDateTime';
    data: Date;
    driverParam: string | Date;
    enumValues: undefined;
    generated: undefined;
}>;
export declare class MsSqlDateTimeBuilder<T extends ColumnBuilderBaseConfig<'date', 'MsSqlDateTime'>> extends MsSqlDateColumnBaseBuilder<T, MsSqlDatetimeConfig> {
    static readonly [entityKind]: string;
    constructor(name: T['name']);
}
export declare class MsSqlDateTime<T extends ColumnBaseConfig<'date', 'MsSqlDateTime'>> extends MsSqlColumn<T> {
    static readonly [entityKind]: string;
    constructor(table: AnyMsSqlTable<{
        name: T['tableName'];
    }>, config: MsSqlDateTimeBuilder<T>['config']);
    getSQLType(): string;
}
export type MsSqlDateTimeStringBuilderInitial<TName extends string> = MsSqlDateTimeStringBuilder<{
    name: TName;
    dataType: 'string';
    columnType: 'MsSqlDateTimeString';
    data: string;
    driverParam: string | Date;
    enumValues: undefined;
    generated: undefined;
}>;
export declare class MsSqlDateTimeStringBuilder<T extends ColumnBuilderBaseConfig<'string', 'MsSqlDateTimeString'>> extends MsSqlDateColumnBaseBuilder<T, MsSqlDatetimeConfig> {
    static readonly [entityKind]: string;
    constructor(name: T['name']);
}
export declare class MsSqlDateTimeString<T extends ColumnBaseConfig<'string', 'MsSqlDateTimeString'>> extends MsSqlColumn<T> {
    static readonly [entityKind]: string;
    constructor(table: AnyMsSqlTable<{
        name: T['tableName'];
    }>, config: MsSqlDateTimeStringBuilder<T>['config']);
    getSQLType(): string;
    mapFromDriverValue(value: Date | string | null): string | null;
}
export interface MsSqlDatetimeConfig<TMode extends 'date' | 'string' = 'date' | 'string'> {
    mode?: TMode;
}
export declare function datetime(): MsSqlDateTimeBuilderInitial<''>;
export declare function datetime<TMode extends MsSqlDatetimeConfig['mode'] & {}>(config?: MsSqlDatetimeConfig<TMode>): Equal<TMode, 'string'> extends true ? MsSqlDateTimeStringBuilderInitial<''> : MsSqlDateTimeBuilderInitial<''>;
export declare function datetime<TName extends string, TMode extends MsSqlDatetimeConfig['mode'] & {}>(name: TName, config?: MsSqlDatetimeConfig<TMode>): Equal<TMode, 'string'> extends true ? MsSqlDateTimeStringBuilderInitial<TName> : MsSqlDateTimeBuilderInitial<TName>;
