import type { Writable } from 'node:stream';
import type { ConnectorInitOptions } from './base.js';
import { BaseConnector } from './base.js';
export interface StdioConnectorOptions extends ConnectorInitOptions {
    clientInfo?: {
        name: string;
        version: string;
    };
}
export declare class StdioConnector extends BaseConnector {
    private readonly command;
    private readonly args;
    private readonly env?;
    private readonly errlog;
    private readonly clientInfo;
    constructor({ command, args, env, errlog, ...rest }?: {
        command?: string;
        args?: string[];
        env?: Record<string, string>;
        errlog?: Writable;
    } & StdioConnectorOptions);
    /** Establish connection to the MCP implementation. */
    connect(): Promise<void>;
}
//# sourceMappingURL=stdio.d.ts.map