/** * Acquire an advisory lock on a file path. * Returns a release function that must be called when done. * * @throws Error if lock cannot be acquired within timeout */ export declare function acquireLock(filePath: string): Promise<() => Promise>; /** * Execute a function while holding a lock on the given file path. * The lock is released after the function returns (or throws). */ export declare function withLock(filePath: string, fn: () => T | Promise): Promise; //# sourceMappingURL=file-lock.d.ts.map