export interface SupervisionState { /** `process.ppid` captured at startup. */ originalPpid: number; /** `process.ppid` right now. */ currentPpid: number; /** * The MCP host pid threaded past an intermediate launcher * (`CODEGRAPH_HOST_PPID`), or null when unknown — e.g. the standalone bundle, * which pre-bakes `--liftoff-only` and so never runs the relaunch that sets it. */ hostPpid: number | null; /** Liveness probe — `process.kill(pid, 0)` in production, stubbed in tests. */ isAlive: (pid: number) => boolean; /** * Optional parent-pid probe for another process. Used to detect when a * relaunch shim has already been reparented away from the original host even * if the host pid still looks alive (for example, as a zombie waiting to be * reaped). Returns null when unavailable. */ getParentPid?: (pid: number) => number | null; /** Defaults to `process.platform`. */ platform?: NodeJS.Platform; } /** * Returns a human-readable reason string when the process has lost its * supervisor and should shut down, or null while it is still supervised. */ export declare function supervisionLostReason(state: SupervisionState): string | null; //# sourceMappingURL=ppid-watchdog.d.ts.map