import { Knex } from 'knex'; export type Callback = (...args: any[]) => Promise | any; export interface TransactionObject { commit: () => Promise; rollback: () => Promise; get: () => Knex.Transaction; } export interface Store { trx: Knex.Transaction | null; commitCallbacks: Callback[]; rollbackCallbacks: Callback[]; } declare const transactionCtx: { run(trx: Knex.Transaction, cb: TCallback): Promise>; get(): Knex.Transaction | null | undefined; commit(trx: Knex.Transaction): Promise; rollback(trx: Knex.Transaction): Promise; onCommit(cb: Callback): void; onRollback(cb: Callback): void; }; export { transactionCtx }; //# sourceMappingURL=transaction-context.d.ts.map