/** * Check if a process is currently running * * Cross-platform implementation: * - Windows: Uses `tasklist /FI "PID eq ${pid}" /NH` command * - Unix/Mac: Uses `process.kill(pid, 0)` (signal 0 = check existence only) * * Security: Uses safeExecSync for Windows (no shell injection risk) * * @param pid - Process ID to check * @returns true if process is running, false otherwise * * @example * ```typescript * // Check if process exists * if (isProcessRunning(12345)) { * console.log('Process 12345 is running'); * } * * // Check current process (always returns true) * if (isProcessRunning(process.pid)) { * console.log('Current process is running'); * } * ``` */ export declare function isProcessRunning(pid: number): boolean; //# sourceMappingURL=process-check.d.ts.map