/** * StdioConnector - spawns a subprocess and communicates via stdin/stdout * * This connector starts a child process and establishes a bidirectional * JSON-RPC connection using newline-delimited JSON over stdio. */ import type { ComponentConnection, ComponentConnector } from "../types.js"; /** * Options for StdioConnector */ export interface StdioConnectorOptions { /** The command to execute (e.g., "claude-agent" or "/path/to/agent") */ command: string; /** Arguments to pass to the command */ args?: string[]; /** Environment variables to set (merged with current env) */ env?: Record; /** Working directory for the subprocess */ cwd?: string; } /** * Connector that spawns a subprocess and communicates via stdio */ export declare class StdioConnector implements ComponentConnector { private readonly options; constructor(options: StdioConnectorOptions | string); /** * Spawn the subprocess and return a connection to it */ connect(): Promise; } /** * Create a StdioConnector from a command string or options */ export declare function stdio(options: StdioConnectorOptions | string): StdioConnector; //# sourceMappingURL=stdio.d.ts.map