builder.io 1.18.11 → 1.18.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -82,5 +82,12 @@ export declare const getTempScriptPath: (extension: string) => string;
82
82
  */
83
83
  export declare const cleanupTempScript: (scriptPath: string) => void;
84
84
  export declare const getCommandWithShellArgs: (command: string, shell: string) => string[];
85
- export declare function killProcess(sys: DevToolsSys, procOrPid: ChildProcess | DevCommandProcess | number | undefined, abortSignal?: AbortSignal, timeout?: number): Promise<boolean>;
85
+ /**
86
+ * Checks if a process with the given PID is still running.
87
+ * Uses process.kill(pid, 0) which sends a signal 0 to check process existence.
88
+ * @param pid - The process ID to check
89
+ * @returns true if the process is alive, false otherwise
90
+ */
91
+ export declare function isProcessAlive(pid: number): boolean;
92
+ export declare function killProcess(sys: DevToolsSys | undefined, procOrPid: ChildProcess | DevCommandProcess | number | undefined, abortSignal?: AbortSignal, timeout?: number): Promise<Error | null>;
86
93
  export {};