import type { QueryResult } from "pg"; export declare function withExecutor(f: (executor: Executor) => R): Promise; export declare type Executor = (sql: string, params?: any[]) => Promise; export declare type TransactionBodyFn = (executor: Executor) => Promise; /** * Invokes a supplied function within a transaction. * @param body Function to invoke. If this throws, the transaction will be rolled * back. The thrown error will be re-thrown. */ export declare function transact(body: TransactionBodyFn): Promise;