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 type { MsSqlDatetimeConfig } from "./date.common.js";
import { MsSqlDateColumnBaseBuilder } from "./date.common.js";
export type MsSqlDateTime2BuilderInitial<TName extends string> = MsSqlDateTime2Builder<{
    name: TName;
    dataType: 'date';
    columnType: 'MsSqlDateTime2';
    data: Date;
    driverParam: string | Date;
    enumValues: undefined;
    generated: undefined;
}>;
export declare class MsSqlDateTime2Builder<T extends ColumnBuilderBaseConfig<'date', 'MsSqlDateTime2'>> extends MsSqlDateColumnBaseBuilder<T, MsSqlDatetimeConfig> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], config: MsSqlDatetimeConfig | undefined);
}
export declare class MsSqlDateTime2<T extends ColumnBaseConfig<'date', 'MsSqlDateTime2'>> extends MsSqlColumn<T> {
    static readonly [entityKind]: string;
    readonly precision: number | undefined;
    constructor(table: AnyMsSqlTable<{
        name: T['tableName'];
    }>, config: MsSqlDateTime2Builder<T>['config']);
    getSQLType(): string;
}
export type MsSqlDateTime2StringBuilderInitial<TName extends string> = MsSqlDateTime2StringBuilder<{
    name: TName;
    dataType: 'string';
    columnType: 'MsSqlDateTime2String';
    data: string;
    driverParam: string | Date;
    enumValues: undefined;
    generated: undefined;
}>;
export declare class MsSqlDateTime2StringBuilder<T extends ColumnBuilderBaseConfig<'string', 'MsSqlDateTime2String'>> extends MsSqlDateColumnBaseBuilder<T, MsSqlDatetimeConfig> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], config: MsSqlDatetimeConfig | undefined);
}
export declare class MsSqlDateTime2String<T extends ColumnBaseConfig<'string', 'MsSqlDateTime2String'>> extends MsSqlColumn<T> {
    static readonly [entityKind]: string;
    readonly precision: number | undefined;
    constructor(table: AnyMsSqlTable<{
        name: T['tableName'];
    }>, config: MsSqlDateTime2StringBuilder<T>['config']);
    getSQLType(): string;
    mapFromDriverValue(value: Date | string | null): string | null;
}
export declare function datetime2(): MsSqlDateTime2BuilderInitial<''>;
export declare function datetime2<TMode extends MsSqlDatetimeConfig['mode'] & {}>(config?: MsSqlDatetimeConfig<TMode>): Equal<TMode, 'string'> extends true ? MsSqlDateTime2StringBuilderInitial<''> : MsSqlDateTime2BuilderInitial<''>;
export declare function datetime2<TName extends string, TMode extends MsSqlDatetimeConfig['mode'] & {}>(name: TName, config?: MsSqlDatetimeConfig<TMode>): Equal<TMode, 'string'> extends true ? MsSqlDateTime2StringBuilderInitial<TName> : MsSqlDateTime2BuilderInitial<TName>;
