import { entityKind } from "../../entity.js"; import { QueryPromise } from "../../query-promise.js"; import { type BuildQueryResult, type DBQueryConfig, type TableRelationalConfig, type TablesRelationalConfig } from "../../relations.js"; import type { RunnableQuery } from "../../runnable-query.js"; import type { Query, SQLWrapper } from "../../sql/sql.js"; import type { KnownKeysOnly } from "../../utils.js"; import type { PgDialect } from "../dialect.js"; import type { PgPreparedQuery, PgSession, PreparedQueryConfig } from "../session.js"; import type { PgTable } from "../table.js"; export declare class RelationalQueryBuilder { private fullSchema; private schema; private tableNamesMap; private table; private tableConfig; private dialect; private session; static readonly [entityKind]: string; constructor(fullSchema: Record, schema: TSchema, tableNamesMap: Record, table: PgTable, tableConfig: TableRelationalConfig, dialect: PgDialect, session: PgSession); findMany>(config?: KnownKeysOnly>): PgRelationalQuery[]>; findFirst, 'limit'>>(config?: KnownKeysOnly, 'limit'>>): PgRelationalQuery | undefined>; } export declare class PgRelationalQuery extends QueryPromise implements RunnableQuery, SQLWrapper { private fullSchema; private schema; private tableNamesMap; private table; private tableConfig; private dialect; private session; private config; private mode; static readonly [entityKind]: string; readonly _: { readonly dialect: 'pg'; readonly result: TResult; }; constructor(fullSchema: Record, schema: TablesRelationalConfig, tableNamesMap: Record, table: PgTable, tableConfig: TableRelationalConfig, dialect: PgDialect, session: PgSession, config: DBQueryConfig<'many', true> | true, mode: 'many' | 'first'); prepare(name: string): PgPreparedQuery; private _getQuery; private _toSQL; toSQL(): Query; private authToken?; execute(): Promise; }