export declare const STATUS_LOCK_TIMEOUT_MS = 5000;
export declare const STATUS_LOCK_ERROR_CODE = "status_lock_timeout";
/**
 * Execute `fn` while holding an exclusive write-lock on `filePath`.
 * Concurrent calls for the same path are serialized (FIFO).
 * Throws with code `status_lock_timeout` if the lock is not acquired within 5 s.
 */
export declare function withStatusLock<T>(filePath: string, fn: () => Promise<T>): Promise<T>;
/** Active lock count — for diagnostics / tests only. */
export declare function activeStatusLockCount(): number;
/** Clear all locks — TEST USE ONLY. */
export declare function clearAllStatusLocks(): void;
//# sourceMappingURL=file-lock.d.ts.map