import type { Context } from './ResourceInterface.ts';
import { type Transaction } from './DatabaseTransaction.ts';
import { AsyncLocalStorage } from 'async_hooks';
export declare function transaction<T>(context: Context, callback: (transaction: Transaction) => T): T;
export declare function transaction<T>(callback: (transaction: Transaction) => T): T;
export declare namespace transaction {
    var commit: (contextSource: any) => any;
    var abort: (contextSource: any) => any;
}
export declare const contextStorage: AsyncLocalStorage<Context>;
