import type { SessionRegistrySession, TerminalSessionSignal } from "./registry-types.ts"; /** How long a detached child may take to exit after SIGTERM before it is SIGKILLed. */ export declare const DEFAULT_DETACHED_EXIT_GRACE_MS = 1000; export declare function getRuntimePlatform(): string; export declare function defaultKillProcess(target: number, signal: TerminalSessionSignal): void; /** * SIGTERM every tracked detached child, then — after a bounded grace — SIGKILL * the ones still alive. Without the escalation a child that ignores SIGTERM is * abandoned the moment the registry forgets its session. */ export declare function cleanupDetachedChildren(session: SessionRegistrySession, platform: string, killProcess: (target: number, signal: TerminalSessionSignal) => void, exitGraceMs?: number): Promise; //# sourceMappingURL=registry-detached.d.ts.map