export interface FileLockOptions { timeoutMs?: number; staleMs?: number; retryMs?: number; label?: string; } /** * Serialize a short synchronous read-modify-write transaction across * processes. The owner token prevents an old holder from deleting a lock that * was recovered and reacquired by another process. */ export declare function withFileLock(lockPath: string, operation: () => T, options?: FileLockOptions): T;