type Subprocess = { kill: (signal?: number | NodeJS.Signals) => void; pid?: number; on: (event: "exit", cb: (code: number, signal: string) => void) => void; exitCode: number | null; }; /** * Track a subprocess as spawned by this process so they can be all terminated to cleanup tests or similar */ export declare const trackSubprocess: (subprocess: Subprocess) => void; /** * Send the signal to all tracked subprocesses and await their exit */ export declare const killAllSubprocesses: (signal?: number | NodeJS.Signals) => Promise; /** * Send SIGTERM to all tracked subprocesses and await their exit, then SIGKILL if they don't exit in time */ export declare const gracefullyKillAllSubprocesses: () => Promise; export {};