import type { Application, Context } from 'egg'; import { EventStore } from '@modelcontextprotocol/sdk/server/streamableHttp.js'; export interface MCPConfigOptions { sseInitPath: string; sseMessagePath: string; streamPath: string; statelessStreamPath: string; ssePingEnabled?: boolean; streamPingEnabled?: boolean; pingElapsed?: number; pingInterval?: number; sessionIdGenerator?: (ctx: Context) => string; eventStore?: EventStore; sseHeartTime?: number; multipleServer?: Record>; } export declare class MCPConfig { private _sseInitPath; private _sseMessagePath; private _streamPath; private _statelessStreamPath; private _sessionIdGenerator; private _eventStore?; private _sseHeartTime; private _pingElapsed; private _pingInterval; private _ssePingEnabled; private _streamPingEnabled; private _multipleServer; constructor(options: MCPConfigOptions); getSseInitPath(name?: string): string; getSseMessagePath(name?: string): string; getStreamPath(name?: string): string; getStatelessStreamPath(name?: string): string; getSessionIdGenerator(name?: string): (ctx: Context) => string; getEventStore(name?: string): EventStore | undefined; getSseHeartTime(name?: string): number; getMultipleServerNames(): string[]; getPingElapsed(name?: string): number | undefined; getPingInterval(name?: string): number; getSsePingEnabled(name?: string): boolean; getStreamPingEnabled(name?: string): boolean; setMultipleServerPath(app: Application, name: string): void; }