import type { PGlite, Transaction } from '@electric-sql/pglite'; import { AsyncDatabase, type TransactionOptions } from '../core/Database.js'; import type { AsyncDriver, AsyncStatement, BatchedQuery } from '../core/Driver.js'; type Queryable = PGlite | Transaction; declare class PreparedStatement implements AsyncStatement { private client; private sql; constructor(client: Queryable, sql: string); all(params: Array): Promise>; run(params: Array): Promise; get(params: Array): Promise; values(params: Array): Promise>>; free(): void; } export declare class PGliteDriver implements AsyncDriver { private client; private depth; parsesJson: boolean; supportsTransactions: boolean; constructor(client: Queryable, depth?: number); exec(query: string): Promise; close(): Promise; prepare(sql: string): PreparedStatement; batch(queries: Array): Promise>>; transaction(run: (inner: AsyncDriver) => Promise, options: TransactionOptions['postgres']): Promise; } export declare function connect(db: PGlite): AsyncDatabase<'postgres'>; export {};