import type { BuildColumns, BuildExtraConfigColumns } from "../column-builder.js";
import { entityKind } from "../entity.js";
import { Table, type TableConfig as TableConfigBase, type UpdateTableConfig } from "../table.js";
import type { CheckBuilder } from "./checks.js";
import { type MsSqlColumnBuilders } from "./columns/all.js";
import type { MsSqlColumn, MsSqlColumnBuilderBase } from "./columns/common.js";
import type { ForeignKeyBuilder } from "./foreign-keys.js";
import type { AnyIndexBuilder } from "./indexes.js";
import type { PrimaryKeyBuilder } from "./primary-keys.js";
import type { UniqueConstraintBuilder } from "./unique-constraint.js";
export type MsSqlTableExtraConfigValue = AnyIndexBuilder | CheckBuilder | ForeignKeyBuilder | PrimaryKeyBuilder | UniqueConstraintBuilder;
export type MsSqlTableExtraConfig = Record<string, MsSqlTableExtraConfigValue>;
export type TableConfig = TableConfigBase<MsSqlColumn>;
export declare class MsSqlTable<T extends TableConfig = TableConfig> extends Table<T> {
    static readonly [entityKind]: string;
    protected $columns: T['columns'];
}
export type AnyMsSqlTable<TPartial extends Partial<TableConfig> = {}> = MsSqlTable<UpdateTableConfig<TableConfig, TPartial>>;
export type MsSqlTableWithColumns<T extends TableConfig> = MsSqlTable<T> & {
    [Key in keyof T['columns']]: T['columns'][Key];
};
export declare function mssqlTableWithSchema<TTableName extends string, TSchemaName extends string | undefined, TColumnsMap extends Record<string, MsSqlColumnBuilderBase>>(name: TTableName, columns: TColumnsMap | ((columnTypes: MsSqlColumnBuilders) => TColumnsMap), extraConfig: ((self: BuildExtraConfigColumns<TTableName, TColumnsMap, 'mssql'>) => MsSqlTableExtraConfig | MsSqlTableExtraConfigValue[]) | undefined, schema: TSchemaName, baseName?: TTableName): MsSqlTableWithColumns<{
    name: TTableName;
    schema: TSchemaName;
    columns: BuildColumns<TTableName, TColumnsMap, 'mssql'>;
    dialect: 'mssql';
}>;
export interface MsSqlTableFn<TSchema extends string | undefined = undefined> {
    <TTableName extends string, TColumnsMap extends Record<string, MsSqlColumnBuilderBase>>(name: TTableName, columns: TColumnsMap, extraConfig?: (self: BuildExtraConfigColumns<TTableName, TColumnsMap, 'mssql'>) => MsSqlTableExtraConfigValue[]): MsSqlTableWithColumns<{
        name: TTableName;
        schema: TSchema;
        columns: BuildColumns<TTableName, TColumnsMap, 'mssql'>;
        dialect: 'mssql';
    }>;
    <TTableName extends string, TColumnsMap extends Record<string, MsSqlColumnBuilderBase>>(name: TTableName, columns: (columnTypes: MsSqlColumnBuilders) => TColumnsMap, extraConfig?: (self: BuildExtraConfigColumns<TTableName, TColumnsMap, 'mssql'>) => MsSqlTableExtraConfigValue[]): MsSqlTableWithColumns<{
        name: TTableName;
        schema: TSchema;
        columns: BuildColumns<TTableName, TColumnsMap, 'mssql'>;
        dialect: 'mssql';
    }>;
}
export declare const mssqlTable: MsSqlTableFn;
export declare function mssqlTableCreator(customizeTableName: (name: string) => string): MsSqlTableFn;
