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 { MsSqlColumnBuilderWithIdentity, MsSqlColumnWithIdentity } from "./common.js";
export type MsSqlNumericBuilderInitial<TName extends string> = MsSqlNumericBuilder<{
    name: TName;
    dataType: 'string';
    columnType: 'MsSqlNumeric';
    data: string;
    driverParam: string;
    enumValues: undefined;
}>;
export declare class MsSqlNumericBuilder<T extends ColumnBuilderBaseConfig<'string', 'MsSqlNumeric'>> extends MsSqlColumnBuilderWithIdentity<T, MsSqlNumericConfig> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], config: MsSqlNumericConfig | undefined);
}
export declare class MsSqlNumeric<T extends ColumnBaseConfig<'string', 'MsSqlNumeric'>> extends MsSqlColumnWithIdentity<T, MsSqlNumericConfig> {
    static readonly [entityKind]: string;
    readonly precision: number | undefined;
    readonly scale: number | undefined;
    mapFromDriverValue(value: unknown): string;
    getSQLType(): string;
}
export type MsSqlNumericNumberBuilderInitial<TName extends string> = MsSqlNumericNumberBuilder<{
    name: TName;
    dataType: 'number';
    columnType: 'MsSqlNumericNumber';
    data: number;
    driverParam: string;
    enumValues: undefined;
}>;
export declare class MsSqlNumericNumberBuilder<T extends ColumnBuilderBaseConfig<'number', 'MsSqlNumericNumber'>> extends MsSqlColumnBuilderWithIdentity<T, MsSqlNumericConfig> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], config: MsSqlNumericConfig | undefined);
}
export declare class MsSqlNumericNumber<T extends ColumnBaseConfig<'number', 'MsSqlNumericNumber'>> extends MsSqlColumnWithIdentity<T, MsSqlNumericConfig> {
    static readonly [entityKind]: string;
    readonly precision: number | undefined;
    readonly scale: number | undefined;
    mapFromDriverValue(value: unknown): number;
    mapToDriverValue: StringConstructor;
    getSQLType(): string;
}
export type MsSqlNumericBigIntBuilderInitial<TName extends string> = MsSqlNumericBigIntBuilder<{
    name: TName;
    dataType: 'bigint';
    columnType: 'MsSqlNumericBigInt';
    data: bigint;
    driverParam: string;
    enumValues: undefined;
}>;
export declare class MsSqlNumericBigIntBuilder<T extends ColumnBuilderBaseConfig<'bigint', 'MsSqlNumericBigInt'>> extends MsSqlColumnBuilderWithIdentity<T, MsSqlNumericConfig> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], config: MsSqlNumericConfig | undefined);
}
export declare class MsSqlNumericBigInt<T extends ColumnBaseConfig<'bigint', 'MsSqlNumericBigInt'>> extends MsSqlColumnWithIdentity<T, MsSqlNumericConfig> {
    static readonly [entityKind]: string;
    readonly precision: number | undefined;
    readonly scale: number | undefined;
    mapFromDriverValue: BigIntConstructor;
    mapToDriverValue: StringConstructor;
    getSQLType(): string;
}
export interface MsSqlNumericConfig<T extends 'string' | 'number' | 'bigint' = 'string' | 'number' | 'bigint'> {
    precision?: number;
    scale?: number;
    mode?: T;
}
export declare function numeric(): MsSqlNumericBuilderInitial<''>;
export declare function numeric<TMode extends 'string' | 'number' | 'bigint'>(config: MsSqlNumericConfig<TMode>): Equal<TMode, 'number'> extends true ? MsSqlNumericNumberBuilderInitial<''> : Equal<TMode, 'bigint'> extends true ? MsSqlNumericBigIntBuilderInitial<''> : MsSqlNumericBuilderInitial<''>;
export declare function numeric<TName extends string, TMode extends 'string' | 'number' | 'bigint'>(name: TName, config?: MsSqlNumericConfig<TMode>): Equal<TMode, 'number'> extends true ? MsSqlNumericNumberBuilderInitial<TName> : Equal<TMode, 'bigint'> extends true ? MsSqlNumericBigIntBuilderInitial<TName> : MsSqlNumericBuilderInitial<TName>;
