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 CockroachColumnsBuilders } from "./columns/all.js";
import type { CockroachColumn, CockroachColumnBuilderBase } from "./columns/common.js";
import type { ForeignKeyBuilder } from "./foreign-keys.js";
import type { AnyIndexBuilder } from "./indexes.js";
import type { CockroachPolicy } from "./policies.js";
import type { PrimaryKeyBuilder } from "./primary-keys.js";
import type { UniqueConstraintBuilder } from "./unique-constraint.js";
export type CockroachTableExtraConfigValue = AnyIndexBuilder | CheckBuilder | ForeignKeyBuilder | PrimaryKeyBuilder | UniqueConstraintBuilder | CockroachPolicy;
export type CockroachTableExtraConfig = Record<string, CockroachTableExtraConfigValue>;
export type TableConfig = TableConfigBase<CockroachColumn>;
export declare class CockroachTable<T extends TableConfig = TableConfig> extends Table<T> {
    static readonly [entityKind]: string;
}
export type AnyCockroachTable<TPartial extends Partial<TableConfig> = {}> = CockroachTable<UpdateTableConfig<TableConfig, TPartial>>;
export type CockroachTableWithColumns<T extends TableConfig> = CockroachTable<T> & {
    [Key in keyof T['columns']]: T['columns'][Key];
} & {
    enableRLS: () => Omit<CockroachTableWithColumns<T>, 'enableRLS'>;
};
export interface CockroachTableFn<TSchema extends string | undefined = undefined> {
    <TTableName extends string, TColumnsMap extends Record<string, CockroachColumnBuilderBase>>(name: TTableName, columns: TColumnsMap, extraConfig?: (self: BuildExtraConfigColumns<TTableName, TColumnsMap, 'cockroach'>) => CockroachTableExtraConfigValue[]): CockroachTableWithColumns<{
        name: TTableName;
        schema: TSchema;
        columns: BuildColumns<TTableName, TColumnsMap, 'cockroach'>;
        dialect: 'cockroach';
    }>;
    <TTableName extends string, TColumnsMap extends Record<string, CockroachColumnBuilderBase>>(name: TTableName, columns: (columnTypes: CockroachColumnsBuilders) => TColumnsMap, extraConfig?: (self: BuildExtraConfigColumns<TTableName, TColumnsMap, 'cockroach'>) => CockroachTableExtraConfigValue[]): CockroachTableWithColumns<{
        name: TTableName;
        schema: TSchema;
        columns: BuildColumns<TTableName, TColumnsMap, 'cockroach'>;
        dialect: 'cockroach';
    }>;
}
export declare const cockroachTable: CockroachTableFn;
export declare function cockroachTableCreator(customizeTableName: (name: string) => string): CockroachTableFn;
