import { Knex } from "knex"; export type TransactionCode = (trx: Knex.Transaction) => Promise; export type NextTransactionCode = (trx: Knex.Transaction, previousValue?: any) => Promise; export declare const config: { knexInstance?: Knex; }; export declare function transact(provider: TransactionCode, trx?: Knex.Transaction): Promise; export declare function transact(provider: NextTransactionCode[], trx?: Knex.Transaction): Promise;