import type { VirtualTableConnection } from '@quereus/quereus'; /** * Callback interface for IsolatedTable to receive transaction events. */ export interface IsolatedTableCallback { onConnectionCommit(): Promise; onConnectionRollback(): Promise; onConnectionSavepoint(index: number): Promise; onConnectionReleaseSavepoint(index: number): Promise; onConnectionRollbackToSavepoint(index: number): Promise; } /** * Connection wrapper that coordinates transactions across overlay and underlying. * When commit/rollback are called by the database, this connection calls back * to the IsolatedTable to perform flush/clear operations. */ export declare class IsolatedConnection implements VirtualTableConnection { readonly connectionId: string; readonly tableName: string; readonly isCovering = true; private readonly underlyingConnection; private readonly overlayConnection; private readonly tableCallback; constructor(tableName: string, underlyingConnection: VirtualTableConnection | undefined, overlayConnection: VirtualTableConnection | undefined, tableCallback?: IsolatedTableCallback); begin(): Promise; commit(): Promise; rollback(): Promise; createSavepoint(index: number): Promise; releaseSavepoint(index: number): Promise; rollbackToSavepoint(index: number): Promise; disconnect(): Promise; } //# sourceMappingURL=isolated-connection.d.ts.map