/** Lock age past which a sessionless busy lock is reaped (default 30 min). */ export declare const STALE_BUSY_REAP_AFTER_MS: number; /** How often the daemon runs the reaper per agent. */ export declare const STALE_BUSY_REAP_INTERVAL_MS: number; export type StaleBusyOutcome = 'idle' | 'kept-live-session' | 'kept-young' | 'kept-not-busy' | 'kept-node-or-unknown' | 'cleared'; export interface StaleBusyDeps { agentId: string; hasLiveSession: () => boolean; pushState: (force?: boolean) => void; log?: (message: string) => void; nowMs?: () => number; reapAfterMs?: number; readLockFn?: (agentId: string) => { pid: number; startedAt: string; } | null; busyFn?: (agentId: string) => boolean; clearLockFn?: (agentId: string) => void; /** Image name for a pid, or null when unlistable/unknown. */ imageForPid?: (pid: number) => string | null; } export declare function reapStaleBusyLock(deps: StaleBusyDeps): StaleBusyOutcome;