import { ChildProcess } from 'child_process'; import { IServerConfig } from '../types/index.js'; /** * Spawn Result * Contains the spawned process and its stdio streams */ export interface SpawnResult { process: ChildProcess; stdout: NodeJS.ReadableStream; stdin: NodeJS.WritableStream; stderr: NodeJS.ReadableStream; } /** * Process Spawner * Handles spawning of MCP server processes */ export declare class ProcessSpawner { /** * Spawn a new process with the given configuration * @param config - Server configuration containing command, args, env, and basePath * @returns SpawnResult with process and stdio streams */ spawn(config: IServerConfig): SpawnResult; }