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