import { IncomingMessage, ServerResponse } from "http"; export interface HttpTransportOptions { port?: number; host?: string; endpoint?: string; bodySizeLimit?: string; debug?: boolean; } export interface JsonRpcMessage { jsonrpc: string; method?: string; params?: any; id?: string | number | null; result?: any; error?: any; } export declare abstract class BaseHttpServerTransport { onmessage?: (message: JsonRpcMessage) => void; onerror?: (error: Error) => void; onclose?: () => void; abstract start(): Promise; abstract close(): Promise; abstract send(message: JsonRpcMessage): Promise; abstract handleRequest(req: IncomingMessage, res: ServerResponse, parsedBody?: unknown): Promise; }