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 { MsSqlColumn, MsSqlColumnBuilder } from "./common.js";
export type MsSqlTimeStringBuilderInitial<TName extends string> = MsSqlTimeStringBuilder<{
    name: TName;
    dataType: 'string';
    columnType: 'MsSqlTime';
    data: string;
    driverParam: string | Date;
    enumValues: undefined;
    generated: undefined;
}>;
export declare class MsSqlTimeStringBuilder<T extends ColumnBuilderBaseConfig<'string', 'MsSqlTime'>> extends MsSqlColumnBuilder<T, TimeConfig> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], config: TimeConfig | undefined);
}
export declare class MsSqlTimeString<T extends ColumnBaseConfig<'string', 'MsSqlTime'>> extends MsSqlColumn<T, TimeConfig> {
    static readonly [entityKind]: string;
    readonly fsp: number | undefined;
    getSQLType(): string;
    mapFromDriverValue(value: Date | string | null): string | null;
}
export type MsSqlTimeBuilderInitial<TName extends string> = MsSqlTimeBuilder<{
    name: TName;
    dataType: 'date';
    columnType: 'MsSqlTime';
    data: Date;
    driverParam: string | Date;
    enumValues: undefined;
    generated: undefined;
}>;
export declare class MsSqlTimeBuilder<T extends ColumnBuilderBaseConfig<'date', 'MsSqlTime'>> extends MsSqlColumnBuilder<T, TimeConfig> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], config: TimeConfig | undefined);
}
export declare class MsSqlTime<T extends ColumnBaseConfig<'date', 'MsSqlTime'>> extends MsSqlColumn<T, TimeConfig> {
    static readonly [entityKind]: string;
    readonly fsp: number | undefined;
    getSQLType(): string;
}
export type TimeConfig<TMode extends 'date' | 'string' = 'date' | 'string'> = {
    precision?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
    mode?: TMode;
};
export declare function time(): MsSqlTimeBuilderInitial<''>;
export declare function time<TMode extends TimeConfig['mode'] & {}>(config?: TimeConfig<TMode>): Equal<TMode, 'string'> extends true ? MsSqlTimeStringBuilderInitial<''> : MsSqlTimeBuilderInitial<''>;
export declare function time<TName extends string, TMode extends TimeConfig['mode'] & {}>(name: TName, config?: TimeConfig<TMode>): Equal<TMode, 'string'> extends true ? MsSqlTimeStringBuilderInitial<TName> : MsSqlTimeBuilderInitial<TName>;
