import type { Server } from "node:http"; import { type Express } from "express"; export interface HttpServerOptions { port?: number; allowedOrigins?: string; } export interface HttpServerResult { app: Express; httpServer: Server; shutdown: () => Promise; } /** * Whether a request body can reach the TomTom API. Anything that is not a * known keyless method or a notification, including a JSON-RPC response or an * empty batch, counts as needing the key. */ export declare function needsApiKey(body: unknown): boolean; /** * Builds an RFC 9728 WWW-Authenticate Bearer challenge that points to the * MCP server's OAuth protected-resource metadata endpoint. Optional `error` * / `description` follow RFC 6750. */ export declare function buildWwwAuthenticate(resourceMetadataUrl: string, opts?: { error?: string; description?: string; }): string; /** * Creates and starts the HTTP server. Exported for integration testing. * * Each incoming request gets its own McpServer + transport pair, created on-the-fly. * This ensures full isolation between concurrent requests — no shared state, no locking. * createServer() is lightweight (in-memory tool registration, no network calls). */ export declare function createHttpServer(options?: HttpServerOptions): Promise; //# sourceMappingURL=indexHttp.d.ts.map