export type AdvisoryLockBackendProvenance = { /** * - Tier that served the acquisition. */ backend: import("./advisory-lock-backend-policy.js").AdvisoryLockTier; /** * - Database driver type when the driver tier served it. */ driverType?: string; /** * - Fencing epoch when the serving tier issues one. */ epoch?: number; /** * - Whether this tier carries fencing tokens (design ยง8); the file tier reports false rather than pretending. */ fencingSupported: boolean; /** * - Backend holder id for the file tier. */ holderId?: string; /** * - Lock name this provenance belongs to. */ lockName?: string; }; export type HeldAdvisoryLock = { /** * - Nesting depth of the hold. */ depth: number; /** * - Backend that served the outer hold. */ lockBackend: AdvisoryLockBackendProvenance; }; export type AdvisoryLockReentrancyStorage = { /** * - Store for the current async context. */ getStore: () => Map | undefined; /** * - Runs the callback with the store installed. */ run: (store: Map, callback: () => ReturnType) => ReturnType; }; /** * Installs the runtime's async-context storage. Called once by the Node handler. * @param {AdvisoryLockReentrancyStorage} storage - Storage owned by the runtime. * @returns {void} */ export declare function installAdvisoryLockReentrancyStorage(storage: AdvisoryLockReentrancyStorage): void; /** * Returns the locks the current async context holds, when this runtime has * async-context storage. * @returns {Map | undefined} - Current context store. */ export declare function advisoryLockReentrancyStore(): Map | undefined; /** * Runs a callback with the store installed as the current context. Runtimes * without async-context storage run the callback directly. * @param {Map} store - Store for the hold being executed. * @param {() => ReturnType} callback - Hold work. * @returns {ReturnType} - Callback result. */ export declare function runWithAdvisoryLockReentrancyStore(store: Map, callback: () => ReturnType): ReturnType; //# sourceMappingURL=advisory-lock-reentrancy.d.ts.map