import type { IncomingMessage } from "node:http"; import type { JSONRPCMessage, JSONRPCNotification, JSONRPCRequest, JSONRPCResponse } from "tiny-stdio-mcp-server"; export interface ClassifiedBody { entries: Array; messages: JSONRPCMessage[]; hasRequests: boolean; hasNotifications: boolean; hasResponses: boolean; requests: JSONRPCRequest[]; notifications: JSONRPCNotification[]; responses: JSONRPCResponse[]; } export interface BodyReadOptions { maxBytes?: number; maxBatchSize?: number; } export declare class JsonRpcMessageError extends Error { readonly id: string | number | null; readonly code: number; constructor(id: string | number | null, code: number, message: string); } export declare function readAndClassifyBody(req: IncomingMessage, preParsed?: unknown, options?: BodyReadOptions): Promise;