import { HarnessMcpServer, type McpRequest, type McpResponse } from './mcpServer';
export interface StdioServerOptions {
    server: HarnessMcpServer;
    input?: NodeJS.ReadableStream;
    output?: NodeJS.WritableStream;
    /** Called on JSON parse errors. Defaults to silent. */
    onParseError?: (line: string, err: Error) => void;
}
export interface StdioServerHandle {
    stop: () => void;
}
export declare function startMcpStdioServer(options: StdioServerOptions): StdioServerHandle;
/** Helper for tests: run a single request through the server and return the response. */
export declare function singleRequest(server: HarnessMcpServer, request: McpRequest): Promise<McpResponse>;
//# sourceMappingURL=mcpStdio.d.ts.map