import duckdb from '@duckdb/node-bindings'; import { DuckDBAppender } from './DuckDBAppender'; import { DuckDBClientContext } from './DuckDBClientContext'; import { DuckDBExtractedStatements } from './DuckDBExtractedStatements'; import { DuckDBInstance } from './DuckDBInstance'; import { DuckDBMaterializedResult } from './DuckDBMaterializedResult'; import { DuckDBPendingResult } from './DuckDBPendingResult'; import { DuckDBPreparedStatement } from './DuckDBPreparedStatement'; import { DuckDBResult } from './DuckDBResult'; import { DuckDBResultReader } from './DuckDBResultReader'; import { DuckDBScalarFunction } from './DuckDBScalarFunction'; import { DuckDBType } from './DuckDBType'; import { DuckDBValue } from './values'; export declare class DuckDBConnection { private readonly connection; private readonly preparedStatements; constructor(connection: duckdb.Connection); static create(instance?: DuckDBInstance): Promise; /** Same as disconnectSync. */ closeSync(): void; disconnectSync(): void; get clientContext(): DuckDBClientContext; getClientContext(): DuckDBClientContext; interrupt(): void; get progress(): duckdb.QueryProgress; run(sql: string, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; runAndRead(sql: string, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; runAndReadAll(sql: string, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; runAndReadUntil(sql: string, targetRowCount: number, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; stream(sql: string, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; streamAndRead(sql: string, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; streamAndReadAll(sql: string, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; streamAndReadUntil(sql: string, targetRowCount: number, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; start(sql: string, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; startThenRead(sql: string, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; startThenReadAll(sql: string, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; startThenReadUntil(sql: string, targetRowCount: number, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; startStream(sql: string, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; startStreamThenRead(sql: string, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; startStreamThenReadAll(sql: string, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; startStreamThenReadUntil(sql: string, targetRowCount: number, values?: DuckDBValue[] | Record, types?: DuckDBType[] | Record): Promise; prepare(sql: string): Promise; private createPrepared; extractStatements(sql: string): Promise; private runUntilLast; getTableNames(query: string, qualified: boolean): readonly string[]; createAppender(table: string, schema?: string | null, catalog?: string | null): Promise; registerScalarFunction(scalarFunction: DuckDBScalarFunction): void; }