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 { SQLiteDialect } from "../dialect.js"; import type { PreparedQueryConfig, SQLitePreparedQuery, SQLiteSession } from "../session.js"; import type { SQLiteTable } from "../table.js"; export type SQLiteRelationalQueryKind = TMode extends 'async' ? SQLiteRelationalQuery : SQLiteSyncRelationalQuery; export declare class RelationalQueryBuilder, TSchema extends TablesRelationalConfig, TFields extends TableRelationalConfig> { protected mode: TMode; protected fullSchema: Record; protected schema: TSchema; protected tableNamesMap: Record; protected table: SQLiteTable; protected tableConfig: TableRelationalConfig; protected dialect: SQLiteDialect; protected session: SQLiteSession<'async', unknown, TFullSchema, TSchema>; static readonly [entityKind]: string; constructor(mode: TMode, fullSchema: Record, schema: TSchema, tableNamesMap: Record, table: SQLiteTable, tableConfig: TableRelationalConfig, dialect: SQLiteDialect, session: SQLiteSession<'async', unknown, TFullSchema, TSchema>); findMany>(config?: KnownKeysOnly>): SQLiteRelationalQueryKind[]>; findFirst, 'limit'>>(config?: KnownKeysOnly, 'limit'>>): SQLiteRelationalQueryKind | undefined>; } export declare class SQLiteRelationalQuery extends QueryPromise implements RunnableQuery, SQLWrapper { private fullSchema; private schema; private tableNamesMap; private tableConfig; private dialect; private session; private config; static readonly [entityKind]: string; readonly _: { readonly dialect: 'sqlite'; readonly type: TType; readonly result: TResult; }; constructor(fullSchema: Record, schema: TablesRelationalConfig, tableNamesMap: Record, /** @internal */ table: SQLiteTable, tableConfig: TableRelationalConfig, dialect: SQLiteDialect, session: SQLiteSession<'sync' | 'async', unknown, Record, TablesRelationalConfig>, config: DBQueryConfig<'many', true> | true, mode: 'many' | 'first'); prepare(): SQLitePreparedQuery; private _toSQL; toSQL(): Query; execute(): Promise; } export declare class SQLiteSyncRelationalQuery extends SQLiteRelationalQuery<'sync', TResult> { static readonly [entityKind]: string; sync(): TResult; }