//#region src/shared/utils/lock.d.ts /** * Acquire an exclusive file lock. Returns a release function that must be called in a finally block. * Uses O_EXCL (exclusive create) for atomic lock acquisition on POSIX filesystems. * Stale locks (older than LOCK_STALE_TIMEOUT) are automatically removed and re-acquired. */ declare function acquireLock(lockPath: string): Promise<() => Promise>; /** * Run `fn` with an exclusive file lock. The lock is always released, even if `fn` throws. */ declare function withLock(lockPath: string, fn: () => Promise): Promise; //#endregion export { acquireLock, withLock }; //# sourceMappingURL=lock.d.ts.map