/** * M78: test-mode only. PI_ROOST_PARENT_PID is set by the tests and the stress runner, never in * normal use: the daemon and its hosts follow that process and go when it is gone. */ export declare function followedParent(env?: NodeJS.ProcessEnv): number | undefined; export declare function pidAlive(pid: number): boolean; /** PI_ROOST_HOME in the OS temp dir with a test prefix: `/roost-...`. */ export declare function isTestHome(home: string | undefined): boolean; /** * M78: kills what earlier test and stress runs left behind: daemon/host/stress-agent processes * that carry a test marker (PI_ROOST_PARENT_PID, or PI_ROOST_HOME under the temp dir as * `roost-*`) and whose followed parent is gone (marked by its home only: whose own parent is * gone, its parent pid 1). Never touches a process without a marker, nor one whose parent is * alive (another run in progress). Returns the pids killed. */ export declare function sweepOrphans(log?: (line: string) => void): number[];