import type { CockroachDialectConfig } from "../dialect.js";
import { CockroachDialect } from "../dialect.js";
import { entityKind } from "../../entity.js";
import type { SQLWrapper } from "../../sql/sql.js";
import { WithSubquery } from "../../subquery.js";
import type { CockroachColumn } from "../columns/index.js";
import type { WithBuilder } from "../subquery.js";
import { CockroachSelectBuilder } from "./select.js";
import type { SelectedFields } from "./select.types.js";
export declare class QueryBuilder {
    static readonly [entityKind]: string;
    private dialect;
    private dialectConfig;
    constructor(dialect?: CockroachDialect | CockroachDialectConfig);
    $with: WithBuilder;
    with(...queries: WithSubquery[]): {
        select: {
            (): CockroachSelectBuilder<undefined, "qb">;
            <TSelection extends SelectedFields>(fields: TSelection): CockroachSelectBuilder<TSelection, "qb">;
        };
        selectDistinct: {
            (): CockroachSelectBuilder<undefined, "qb">;
            <TSelection extends SelectedFields>(fields: TSelection): CockroachSelectBuilder<TSelection, "qb">;
        };
        selectDistinctOn: {
            (on: (CockroachColumn | SQLWrapper)[]): CockroachSelectBuilder<undefined, "qb">;
            <TSelection extends SelectedFields>(on: (CockroachColumn | SQLWrapper)[], fields: TSelection): CockroachSelectBuilder<TSelection, "qb">;
        };
    };
    select(): CockroachSelectBuilder<undefined, 'qb'>;
    select<TSelection extends SelectedFields>(fields: TSelection): CockroachSelectBuilder<TSelection, 'qb'>;
    selectDistinct(): CockroachSelectBuilder<undefined>;
    selectDistinct<TSelection extends SelectedFields>(fields: TSelection): CockroachSelectBuilder<TSelection>;
    selectDistinctOn(on: (CockroachColumn | SQLWrapper)[]): CockroachSelectBuilder<undefined>;
    selectDistinctOn<TSelection extends SelectedFields>(on: (CockroachColumn | SQLWrapper)[], fields: TSelection): CockroachSelectBuilder<TSelection>;
    private getDialect;
}
