import { open, rename, rm } from "node:fs/promises"; type LockOptions = { staleAfterMs?: number; ownerTag?: string; }; type AtomicWriteDeps = { open?: typeof open; rename?: typeof rename; rm?: typeof rm; }; export declare function withLock(lockPath: string, fn: () => Promise, opts?: LockOptions): Promise; export declare function detectStaleLock(lockPath: string, staleAfterMs: number): Promise; export declare function reapStaleLock(lockPath: string): Promise; export declare function atomicWrite(filePath: string, content: string | Buffer, deps?: AtomicWriteDeps): Promise; export {};