UNPKG

histoire

Version:

A fast story book powered by Vite

16 lines • 1.02 kB
import type { ChildProcess } from 'node:child_process'; /** Bounded escalation and pipe shutdown for one owned process group. */ interface ProcessTreeTimeouts { /** Grace period before forcing descendants to exit. */ terminate?: number; /** Time allowed for group disappearance after SIGKILL. */ killed?: number; /** Time allowed for direct process exit evidence. */ exit?: number; /** Time allowed for inherited pipes to close. */ close?: number; /** Interval between process-group probes. */ poll?: number; /** Deadline for Windows taskkill. */ windows?: number; /** Existing caller's public forced-termination error. */ failureMessage?: string; /** Windows directory inherited by the spawned process. */ systemRoot?: string; } /** Stop an owned detached child and its descendants, escalating before closing pipes. */ export declare function stopProcessTree(child: ChildProcess, timeouts?: ProcessTreeTimeouts): Promise<void>; export {}; //# sourceMappingURL=stop-process-tree.d.ts.map