/** * @fileoverview TaskRunner Process Management Utilities * @module @skillsmith/core/services/TaskRunner.process * @see SMI-1662: TaskRunner - Background Task Timeout Management * @see SMI-2741: Split from TaskRunner.ts to meet 500-line standard * * Low-level process lifecycle management for background task cleanup: * - Graceful shutdown with SIGTERM → SIGKILL escalation * - Immediate kill with SIGKILL * - Sleep utility for grace period waiting */ /** * Gracefully shutdown a process: SIGTERM -> wait -> SIGKILL * * Sends SIGTERM first to allow graceful shutdown, waits for the * grace period, then escalates to SIGKILL if the process is still running. * * @param pid - Process ID to shutdown */ export declare function gracefulShutdown(pid: number): Promise; /** * Kill a process immediately with SIGKILL * * @param pid - Process ID to kill */ export declare function killProcess(pid: number): Promise; /** * Sleep for a specified duration * * @param ms - Duration in milliseconds */ export declare function sleep(ms: number): Promise; //# sourceMappingURL=TaskRunner.process.d.ts.map