/** A crashed session disappears from "who is here" after 10 minutes. */ export declare const PRESENCE_TTL_MS: number; /** Heartbeat interval: refresh presence every 2 minutes so live sessions * never expire (TTL is 10 min — 5× margin). */ export declare const PRESENCE_HEARTBEAT_MS: number; export interface PresenceEntry { pid: number; startedAt: string; updatedAt?: string; agentId?: string; kind?: string; taskId?: string; projectId?: string; } /** Live occupants of `path`, oldest first. */ export declare function listPresent(path: string): PresenceEntry[]; /** * Register (or heartbeat-refresh) THIS process in the folder. Deduped by * pid - calling it again just refreshes timestamps. */ export declare function registerPresence(path: string, info?: Omit): void; /** Remove THIS process from the folder's registry. */ export declare function unregisterPresence(path: string): void; /** * True when at least one OTHER live process occupies the folder. Used by * the daemon's auto-worktree escalation ("second agent showed up") and by * status endpoints. */ export declare function hasOtherOccupants(path: string, excludePid?: number): boolean;