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 MsSqlDecimalBuilderInitial<TName extends string> = MsSqlDecimalBuilder<{
    name: TName;
    dataType: 'string';
    columnType: 'MsSqlDecimal';
    data: string;
    driverParam: string;
    enumValues: undefined;
}>;
export declare class MsSqlDecimalBuilder<T extends ColumnBuilderBaseConfig<'string', 'MsSqlDecimal'>> extends MsSqlColumnBuilderWithIdentity<T, MsSqlDecimalConfig> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], config: MsSqlDecimalConfig | undefined);
}
export declare class MsSqlDecimal<T extends ColumnBaseConfig<'string', 'MsSqlDecimal'>> extends MsSqlColumnWithIdentity<T, MsSqlDecimalConfig> {
    static readonly [entityKind]: string;
    readonly precision: number | undefined;
    readonly scale: number | undefined;
    mapFromDriverValue(value: unknown): string;
    getSQLType(): string;
}
export type MsSqlDecimalNumberBuilderInitial<TName extends string> = MsSqlDecimalNumberBuilder<{
    name: TName;
    dataType: 'number';
    columnType: 'MsSqlDecimalNumber';
    data: number;
    driverParam: string;
    enumValues: undefined;
}>;
export declare class MsSqlDecimalNumberBuilder<T extends ColumnBuilderBaseConfig<'number', 'MsSqlDecimalNumber'>> extends MsSqlColumnBuilderWithIdentity<T, MsSqlDecimalConfig> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], config: MsSqlDecimalConfig | undefined);
}
export declare class MsSqlDecimalNumber<T extends ColumnBaseConfig<'number', 'MsSqlDecimalNumber'>> extends MsSqlColumnWithIdentity<T, MsSqlDecimalConfig> {
    static readonly [entityKind]: string;
    readonly precision: number | undefined;
    readonly scale: number | undefined;
    mapFromDriverValue(value: unknown): number;
    mapToDriverValue: StringConstructor;
    getSQLType(): string;
}
export type MsSqlDecimalBigIntBuilderInitial<TName extends string> = MsSqlDecimalBigIntBuilder<{
    name: TName;
    dataType: 'bigint';
    columnType: 'MsSqlDecimalBigInt';
    data: bigint;
    driverParam: string;
    enumValues: undefined;
}>;
export declare class MsSqlDecimalBigIntBuilder<T extends ColumnBuilderBaseConfig<'bigint', 'MsSqlDecimalBigInt'>> extends MsSqlColumnBuilderWithIdentity<T, MsSqlDecimalConfig> {
    static readonly [entityKind]: string;
    constructor(name: T['name'], config: MsSqlDecimalConfig | undefined);
}
export declare class MsSqlDecimalBigInt<T extends ColumnBaseConfig<'bigint', 'MsSqlDecimalBigInt'>> extends MsSqlColumnWithIdentity<T, MsSqlDecimalConfig> {
    static readonly [entityKind]: string;
    readonly precision: number | undefined;
    readonly scale: number | undefined;
    mapFromDriverValue: BigIntConstructor;
    mapToDriverValue: StringConstructor;
    getSQLType(): string;
}
export interface MsSqlDecimalConfig<T extends 'string' | 'number' | 'bigint' = 'string' | 'number' | 'bigint'> {
    precision?: number;
    scale?: number;
    mode?: T;
}
export declare function decimal(): MsSqlDecimalBuilderInitial<''>;
export declare function decimal<TMode extends 'string' | 'number' | 'bigint'>(config: MsSqlDecimalConfig<TMode>): Equal<TMode, 'number'> extends true ? MsSqlDecimalNumberBuilderInitial<''> : Equal<TMode, 'bigint'> extends true ? MsSqlDecimalBigIntBuilderInitial<''> : MsSqlDecimalBuilderInitial<''>;
export declare function decimal<TName extends string, TMode extends 'string' | 'number' | 'bigint'>(name: TName, config?: MsSqlDecimalConfig<TMode>): Equal<TMode, 'number'> extends true ? MsSqlDecimalNumberBuilderInitial<TName> : Equal<TMode, 'bigint'> extends true ? MsSqlDecimalBigIntBuilderInitial<TName> : MsSqlDecimalBuilderInitial<TName>;
