import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import type express from 'express'; import type { StockQuotesService } from '../stockQuotesService.js'; import type { TransportStrategy } from './TransportStrategy.js'; /** * HTTP Transport Strategy * Handles connection via HTTP transport */ export declare class HttpTransportStrategy implements TransportStrategy { private readonly server; private readonly stockService; private readonly serverName; private readonly serverVersion; private expressApp?; private readonly httpPort; private readonly httpHost; private httpServer?; /** * Create a new HttpTransportStrategy instance * @param serverName - Name of the server * @param serverVersion - Version of the server * @param stockService - Stock quotes service instance * @param httpPort - HTTP port to listen on * @param httpHost - HTTP host to bind to (default: '0.0.0.0') */ constructor(serverName: string, serverVersion: string, stockService: StockQuotesService, httpPort: number, httpHost?: string); /** * Connect using HTTP transport */ connect(): Promise; /** * Setup Express routes for stateless Streamable HTTP transport */ private setupExpressRoutes; /** * Get the transport type */ getType(): string; /** * Get the server instance for tool registration */ getServer(): McpServer; /** * Get the Express app instance (for testing or custom transport setups) */ getApp(): express.Application; /** * Close the server and cleanup resources */ close(): Promise; } //# sourceMappingURL=HttpTransportStrategy.d.ts.map