/**
 * Streamable HTTP Transport for MCP
 *
 * Implements MCP Streamable HTTP transport (2025-03-26):
 * - HTTP POST for client->server messages
 * - SSE for server->client streaming
 * - Mcp-Session-Id header for session management
 *
 * CRITICAL: NEVER use console.log() - stdout is reserved for JSON-RPC protocol.
 *
 * @module server/transports/http-transport
 */
export interface HttpTransportConfig {
    port: number;
    sessionTtlMs: number;
}
export declare class HttpTransport {
    private sessions;
    private server;
    private config;
    private cleanupTimer;
    private messageHandler;
    constructor(config?: Partial<HttpTransportConfig>);
    /** Set the handler for incoming messages */
    onMessage(handler: (sessionId: string, message: unknown) => Promise<unknown>): void;
    /** Start the HTTP server */
    start(): Promise<void>;
    /** Stop the HTTP server */
    stop(): Promise<void>;
    private handlePost;
    private handleSSE;
    /** Send SSE event to a session */
    sendEvent(sessionId: string, event: string, data: unknown): void;
    private cleanupExpiredSessions;
    getSessionCount(): number;
}
//# sourceMappingURL=http-transport.d.ts.map