import { type GatewayMcpRequest, type GatewayMcpResult } from "../gateway/mcp-contracts.js"; export interface McpApiOptions { currentGateway(): string | undefined; forward(instanceId: string, request: GatewayMcpRequest): Promise; now?(): number; } export interface McpApiRequest { pathname: string; method: string; owner: string; body(): Promise; } export interface McpApiResponse { status: number; body: unknown; } /** 进程内管理会话仅绑定可信 owner 与当前网关;无持久化、无重放,网关自身同时执行有界过期。 */ export declare class ControlMcpService { private readonly options; private readonly sessions; private readonly now; constructor(options: McpApiOptions); revokeOwner(owner: string): void; private expire; private cleanup; private current; private forward; handle(request: McpApiRequest): Promise; } //# sourceMappingURL=mcp-api.d.ts.map