import { SaveChangesArgs } from "@itwin/core-common";
import { EditTxn } from "../EditTxn";
import type { IModelDb } from "../IModelDb";
export declare function withEditTxn<T>(iModel: IModelDb, fn: (txn: EditTxn) => T): T;
export declare function withEditTxn<T>(iModel: IModelDb, saveArgs: string | SaveChangesArgs, fn: (txn: EditTxn) => T): T;
export declare function withEditTxn<T>(iModel: IModelDb, fn: (txn: EditTxn) => Promise<T>): Promise<T>;
export declare function withEditTxn<T>(iModel: IModelDb, saveArgs: string | SaveChangesArgs, fn: (txn: EditTxn) => Promise<T>): Promise<T>;
//# sourceMappingURL=TestEditTxn.d.ts.map