/** * @file * * Cross-platform helper to kill a child process and its entire process tree. */ import type { ChildProcess } from 'node:child_process'; /** * Kills a child process and its entire process tree. * * @param child - The child process to kill. */ export declare function killProcessTree(child: ChildProcess): void; /** * Kills a process tree by PID, for a process this run did not spawn itself — an * Appium server left listening by an earlier run, identified through its marker * (`appium-server-marker.ts`). * * On Windows, `child.kill()` only sends SIGTERM to the direct process, * leaving spawned grandchildren (e.g. Electron renderer/GPU helpers, QEMU, * UiAutomator) alive. `taskkill /F /T /PID` forcefully terminates the entire tree. * * @param pid - The PID whose process tree to kill. */ export declare function killProcessTreeByPid(pid: number): void;