import type { LockManager } from "../interfaces.ts"; /** * `fileLockManager(locksDir)` — file-backed `LockManager`. * * Each lock is a JSON file at `/__.lock` containing * `{ pid, op, agent, heartbeat }`. Atomicity is provided by the `wx` open * flag. Stale locks (dead PID OR heartbeat older than 60 s) are reclaimed * before a new acquire attempt. * * A background `setInterval` at 30 s refreshes the heartbeat while the lock * is held. The interval is `unref()`-ed so it does not keep the process alive. */ export declare function fileLockManager(locksDir: string): LockManager; //# sourceMappingURL=file-lock-manager.d.ts.map