/** * File locking using proper-lockfile. * Prevents concurrent modifications to CLEO data files. * @epic T4454 * @task T4457 */ /** A release function returned by acquireLock. */ export type ReleaseFn = () => Promise; /** * Acquire an exclusive lock on a file. * Returns a release function that must be called when done. */ export declare function acquireLock(filePath: string, options?: { stale?: number; retries?: number; }): Promise; /** * Check if a file is currently locked. */ export declare function isLocked(filePath: string): Promise; /** * Execute a function while holding an exclusive lock on a file. * The lock is automatically released when the function completes (or throws). */ export declare function withLock(filePath: string, fn: () => Promise, options?: { stale?: number; retries?: number; }): Promise; //# sourceMappingURL=lock.d.ts.map