import { Transaction } from "knex"; import * as Knex from "knex"; export declare function withTransaction(executor: (tx: Transaction) => T | Promise, db: Knex, trx?: Transaction): Promise;