/** * Cross-platform abort for spawned `docker` / `docker buildx` processes. * * `child_process.spawn(...).kill('SIGTERM')` on Windows translates to * `TerminateProcess` — equivalent to SIGKILL, with no grace window. We * use `taskkill /T /F /PID` instead so child trees (`docker` → buildkitd) * are torn down explicitly. POSIX gets the standard SIGTERM-then-SIGKILL * grace pattern. * * `platform` is injected so tests pass `"win32"` directly without * `vi.stubGlobal('process', ...)`, which is fragile and leaks across * tests. * * Stream cleanup before signalling per robustness-standards § "Process * Timeout with Stream Cleanup". */ import { type ChildProcess } from "node:child_process"; export declare function abortChildProcess(child: ChildProcess, platform?: NodeJS.Platform): void;