import type { SqliteDatabase } from './adapter.js'; /** * COMMIT threw and the subsequent ROLLBACK also threw. The caller must treat * the transaction as possibly committed: compensating durable side effects * could otherwise turn an uncertain outcome into split-brain state. */ export declare class TransactionCommitUncertainError extends AggregateError { readonly commitError: unknown; readonly rollbackError: unknown; constructor(commitError: unknown, rollbackError: unknown); } export declare function rollbackFailedTransaction(database: SqliteDatabase, operationError: unknown): never; /** Run a synchronous write transaction with bounded retry for SQLite lock errors only. */ export declare function withImmediateTransaction(database: SqliteDatabase, operation: () => T): T; /** Run synchronous reads against one SQLite snapshot without reserving a writer lock. */ export declare function withDeferredReadTransaction(database: SqliteDatabase, operation: () => T): T; //# sourceMappingURL=transaction.d.ts.map