/** * Acquires an exclusive lock on `filePath` using an atomic `.lock` sentinel file, * runs `fn`, then releases the lock. Retries up to MAX_RETRIES times with * exponential back-off + jitter before throwing. * * Uses O_CREAT|O_EXCL (the `wx` flag) which is atomic on POSIX and NTFS — * the same primitive proper-lockfile uses internally. */ export declare function withLock(filePath: string, fn: () => Promise): Promise; //# sourceMappingURL=lock.d.ts.map