/** * File-based lock mechanism for concurrency control */ import type { LockManager, LockInfo } from '../types/index.js'; export declare class FileLockManager implements LockManager { private readonly defaultTimeout; private readonly pollInterval; /** * Acquire a file lock */ acquire(lockFile: string, timeout?: number): Promise; /** * Release a file lock */ release(lockFile: string): Promise; /** * Check if a lock file exists and is active */ isLocked(lockFile: string): Promise; /** * Clean up stale locks in a directory */ clean(lockDir: string): Promise; /** * Handle existing lock file */ private handleExistingLock; /** * Read lock information from file */ private readLockInfo; /** * Check if a process is still running */ private isProcessRunning; /** * Sleep utility */ private sleep; /** * Get lock information if exists */ getLockInfo(lockFile: string): Promise; /** * Force release a lock (dangerous - use with caution) */ forceRelease(lockFile: string): Promise; /** * Wait for lock to be available */ waitForLock(lockFile: string, timeout?: number): Promise; } //# sourceMappingURL=lock-manager.d.ts.map