import { OnModuleDestroy } from '@nestjs/common'; import type { OAuthTokenVerifier } from '@modelcontextprotocol/sdk/server/auth/provider.js'; import * as http from 'http'; import type { McpModuleConfig } from './mcp-module-config'; import { McpToolRegistry } from './mcp-tool-registry'; export declare class McpHttpService implements OnModuleDestroy { private readonly config; private readonly registry; private readonly logger; private readonly sessions; private readonly sessionTtlMs; private readonly sweepInterval; private bearerTokenVerifier?; private bearerAuthRequiredScopes; private bearerAuthResourceMetadataUrl?; constructor(config: McpModuleConfig, registry: McpToolRegistry); setBearerAuthVerifier(verifier: OAuthTokenVerifier, options?: { requiredScopes?: string[]; resourceMetadataUrl?: string; }): void; private getSessionIdGenerator; private createSession; private isInitializeRequestBody; private getRequestOrigin; private authenticateRequest; private getResourceMetadataUrl; private getRequestPath; private getMountPrefix; private splitPath; handleRequest(req: http.IncomingMessage, res: http.ServerResponse): Promise; private sweepStaleSessions; private closeSession; onModuleDestroy(): Promise; } //# sourceMappingURL=mcp-http.service.d.ts.map