/**
 * Stdio JSON-RPC transport for MCP
 */
export interface JsonRpcRequest {
    jsonrpc: '2.0';
    id: string | number;
    method: string;
    params?: unknown;
}
export interface JsonRpcNotification {
    jsonrpc: '2.0';
    method: string;
    params?: unknown;
}
export type JsonRpcMessage = JsonRpcRequest | JsonRpcNotification;
export declare const ErrorCodes: {
    ParseError: number;
    InvalidRequest: number;
    MethodNotFound: number;
    InvalidParams: number;
    InternalError: number;
};
export declare class StdioTransport {
    private buffer;
    start(handler: (msg: JsonRpcMessage) => Promise<unknown>): void;
    send(msg: object): void;
    sendError(id: string | number, code: number, message: string): void;
}
//# sourceMappingURL=transport.d.ts.map