export declare const DEFAULT_PROCESS_MARKER_TIMEOUT_MS = 5000; export declare const DEFAULT_WINDOWS_PROCESS_MARKER_TIMEOUT_MS = 30000; export declare function buildWindowsTaskkillArguments(pid: number, options: { tree: boolean; force: boolean; }): string[]; export declare function defaultProcessMarkerTimeoutMs(platform?: NodeJS.Platform): number; export declare function isProcessAlive(pid: number): boolean; export declare function shouldDetachChildProcessForTree(platform?: NodeJS.Platform): boolean; /** * Returns an OS-owned process creation marker for the rare case where the * Engine control endpoint is unavailable. The marker is only comparable on * the same host and is never used as the normal health signal. */ export declare function queryProcessStartMarker(pid: number, platform?: NodeJS.Platform, timeoutMs?: number): string | undefined; export declare function buildWindowsProcessStartMarkerScript(pid: number): string; export declare function processStartMarkersMatch(expected: string | undefined, actual: string | undefined, platform?: NodeJS.Platform): boolean; export declare function queryProcessCommandLine(pid: number, platform?: NodeJS.Platform): string | undefined; /** Read another process's working directory where the host OS exposes it. */ export declare function queryProcessWorkingDirectory(pid: number, platform?: NodeJS.Platform): string | undefined; /** Read the file backing an inherited process descriptor, used for legacy logs. */ export declare function queryProcessFileDescriptorPath(pid: number, descriptor: number, platform?: NodeJS.Platform): string | undefined; /** Read one environment value from an existing process when the OS exposes it. */ export declare function queryProcessEnvironmentValue(pid: number, name: string, platform?: NodeJS.Platform): string | undefined; export declare function waitForProcessStartMarker(pid: number, platform?: NodeJS.Platform, timeoutMs?: number, intervalMs?: number): string | undefined; export declare function forceTerminateProcessTree(pid: number, platform?: NodeJS.Platform): void; /** * Force-stops only the selected process on Windows. This is intentionally * separate from forceTerminateProcessTree: a detached lifecycle worker can * still be recorded by Windows as a descendant of the Engine that launched * it, so taskkill /T would destroy the worker responsible for recovery. */ export declare function forceTerminateSingleProcess(pid: number, platform?: NodeJS.Platform): void; export declare function terminateSpawnedProcessTree(pid: number, force: boolean, platform?: NodeJS.Platform): void; export declare function waitForProcessExit(pid: number, timeoutMs: number, intervalMs?: number): Promise;