import type { JSONRPCMessage } from "@modelcontextprotocol/sdk/types.js"; import type { Transport } from "@modelcontextprotocol/sdk/shared/transport.js"; type ReadableStdio = NodeJS.ReadableStream & { pause(): unknown; listenerCount(eventName: string | symbol): number; }; /** * Newline-delimited MCP stdio transport with strict byte ceilings. * * The upstream SDK ReadBuffer concatenates until a newline without a maximum. * This transport terminates the session as soon as either an unterminated * frame or a completed frame exceeds the configured byte limit. */ export declare class BoundedStdioServerTransport implements Transport { private readonly stdin; private readonly stdout; private readonly maxInboundFrameBytes; private readonly maxOutboundFrameBytes; private readonly buffer; private bufferedBytes; private started; private closed; onclose?: () => void; onerror?: (error: Error) => void; onmessage?: (message: JSONRPCMessage) => void; constructor(stdin?: ReadableStdio, stdout?: NodeJS.WritableStream, maxInboundFrameBytes?: number, maxOutboundFrameBytes?: number); private readonly handleData; private readonly handleError; private failClosed; start(): Promise; close(): Promise; send(message: JSONRPCMessage): Promise; } export {}; //# sourceMappingURL=bounded-stdio-transport.d.ts.map