import type { LockObserverConfig, LockWaiterDiagnostic, ObserverPool } from './fault-types.mts'; /** * Waits until a query bearing `queryMarker` is blocked by this test's lock-holding backend. * Use a dedicated advisory executor when the held lock and blocked operations can occupy every * write connection; the observer must run before the holder is released. Passing a previously * acquired transaction executor reserves the observer connection before the holder or blocked * operation starts, and its transaction-local activity snapshot is discarded before each * observation. Supply `waiterProcessId` to distinguish this operation from other matching waiters. */ export declare function waitForLockWaiter(config: LockObserverConfig, holderProcessId: number, queryMarker: string, observerPool?: ObserverPool, onDiagnostic?: (diagnostic: LockWaiterDiagnostic) => void, signal?: AbortSignal, waiterProcessId?: number): Promise; /** * Waits until one backend is blocked by `holderProcessId` on `directQueryMarker` and a second * backend is blocked by that first backend on one of `blockedByDirectQueryMarkers`. * * Use this when the second operation cannot reach the holder's lock because the first operation * already holds a conflicting row lock. `pg_blocking_pids` reports only the direct blocker, so * the second wait is the transitive link. */ export declare function waitForBlockedLockChain(config: LockObserverConfig, holderProcessId: number, directQueryMarker: string, blockedByDirectQueryMarkers: readonly string[], observerPool?: ObserverPool): Promise;