/** * Advisory lock around the crash ledger's check-then-write sequence. * * Split out of crash-reporter.ts (i-055-cli revision round 1, alongside * crash-consent.ts) to keep that file under the repo's 500-line guideline — * locking is a distinct, self-contained concern from redaction/dedup/filing. */ /** * Best-effort advisory lock around the ledger's check-then-write sequence, * to close the race where two near-simultaneous crashes (e.g. a supervisor * restarting a process that panics on every startup) both pass the dedup * check before either records its result, filing duplicate issues. * * Returns an ownership id if acquired (pass to releaseLock so it only ever * removes its OWN lock, never one a stale-recovery elsewhere already * re-acquired), or null if not acquired — callers proceed unlocked rather * than block indefinitely, since a lock miss only reopens the same race this * exists to narrow, not something worth ever hanging a crash handler over. */ export declare function acquireLock(): Promise; export declare function releaseLock(lockId: string | null): void; //# sourceMappingURL=crash-lock.d.ts.map