import { CreateMcpServerOptions } from "../../mcp/server.js"; import { TransportType } from "../../mcp/transports/types.js"; /** * Configuration for the transport manager */ export interface TransportManagerConfig { /** Disable authentication for HTTP/SSE transports */ readonly disableAuth?: boolean; /** List of allowed Host header values for DNS rebinding protection */ readonly allowedHosts?: readonly string[]; /** API key for authentication (required when auth is enabled) */ readonly apiKey?: string; } /** HTTP/SSE bind config; ignored for stdio-only setups. */ export interface HttpStartOptions { readonly port: number; readonly host: string; readonly mcpEndpointPath?: string; readonly sseEndpointPath?: string; readonly sseMessageEndpointPath?: string; } export interface TransportStartOptions { readonly serverOptions: CreateMcpServerOptions; readonly types: readonly TransportType[]; /** Required when {@linkcode types} includes HTTP or SSE. */ readonly http?: HttpStartOptions; } export declare class TransportManager { private readonly config?; private readonly transports; private httpServer; private stdioServer; constructor(config?: TransportManagerConfig | undefined); start(options: TransportStartOptions): Promise; stop(): Promise; private createTransport; } //# sourceMappingURL=manager.d.ts.map