/** * Run `handler` while holding an advisory lock file, so concurrent CLI processes (dev sessions, * e2e runs in other worktrees) never interleave a read-modify-write of shared state such as the * Caddy config. Locks from dead processes and locks older than `staleMs` are taken over, and after * `timeoutMs` the lock is stolen rather than failing the caller: a stuck lock file must never make * `stam dev` or an e2e run unusable. */ export declare function withFileLock(lockPath: string, handler: () => Promise, options?: { timeoutMs?: number; staleMs?: number; }): Promise; //# sourceMappingURL=file-lock.d.ts.map