/** * Simple file-based locking using O_EXCL flag. * * Port of cc-agent-teams-impl-mcp _filelock.py. * Uses fs.open with O_CREAT | O_EXCL for atomic lock acquisition. * Spins with exponential backoff on contention. */ /** * Acquire a file lock, execute the callback, and release. * Uses O_CREAT | O_EXCL for atomic creation (fails if file exists). */ export declare function withFileLock(lockPath: string, fn: () => Promise, timeoutMs?: number): Promise; //# sourceMappingURL=filelock.d.ts.map