import type { MCPHttpSseTransportConfig, MCPJsonRpcMessage, MCPTransport } from '../../types/connector/index.js';
export declare class HttpSseTransport implements MCPTransport {
    private readonly config;
    private messageHandlers;
    private closeHandlers;
    private errorHandlers;
    private connected;
    private abortController;
    private sseUrl;
    private postUrl;
    private log;
    constructor(config: MCPHttpSseTransportConfig);
    connect(): Promise<void>;
    close(): Promise<void>;
    send(message: MCPJsonRpcMessage): Promise<void>;
    onMessage(handler: (message: MCPJsonRpcMessage) => void): void;
    onClose(handler: () => void): void;
    onError(handler: (error: Error) => void): void;
    isConnected(): boolean;
    private startSSE;
    private listenSSE;
}
//# sourceMappingURL=http-sse.d.ts.map