import { type SpawnOptionsWithoutStdio } from 'node:child_process'; import { Observable } from 'rxjs'; export type Output = { type: 'err' | 'out'; output: Uint8Array; }; export type OutputEvent = { type: 'output'; output: Output; }; export type ErrorEvent = { type: 'error'; error: Error; }; export type CompletedEvent = { type: 'complete'; }; export type SpawnEvent = OutputEvent | ErrorEvent | CompletedEvent; export type SpawnState = { output: Output[]; error: Error | SpawnError | undefined; completed: boolean; }; export declare class SpawnError extends Error { readonly exitCode: number; constructor(message: string, exitCode: number); } export declare const INITIAL_SPAWN_STATE: SpawnState; export declare function ospawn(command: string, args: readonly string[], options?: SpawnOptionsWithoutStdio): Observable<{ completed: boolean; output: Output[]; error: Error | SpawnError | undefined; }>; //# sourceMappingURL=ospawn.d.ts.map