ReadonlyexitExit code if the process has exited, null otherwise
ReadonlykilledWhether the process has been killed
Writable stream for sending data to the process stdin
Readable stream for receiving data from the process stdout
Kill the process with the given signal
The signal to send (e.g., 'SIGTERM', 'SIGKILL')
Remove an event listener
Register a callback for when the process exits
Must be 'exit'
Callback receiving exit code and signal
Register a callback for process errors
Must be 'error'
Callback receiving the error
Register a one-time callback for when the process exits
Represents a spawned process with stdin/stdout streams and lifecycle management. Implementers provide this interface to abstract the process spawning mechanism. ChildProcess already satisfies this interface.