export interface LockHandle { acquired: boolean; release: () => void; } /** Acquire an exclusive lock via `openSync(..., 'wx')` (mirrors task-store). */ export declare function acquireLock(lockPath: string): LockHandle; /** A lock is stale if its owner PID is dead or it is older than 2× maxAgeMs. */ export declare function isLockStale(lockPath: string, maxAgeMs: number): boolean; export declare function forceReleaseStaleLock(lockPath: string, maxAgeMs: number): void;