import type { GatewayIdentity } from "./contracts.js"; export declare const MCP_FRAME_LIMIT: number; export declare const MCP_ERRORS: readonly ["MCP 请求无效", "MCP 网关不可用", "请明确选择 MCP 账号", "MCP 账号不可用", "MCP 会话不可用", "MCP 会话繁忙", "MCP 会话数量已达上限", "MCP 消息处理失败", "MCP 通知队列已满"]; export interface GatewayMcpRequest { action: "open" | "exchange" | "poll" | "close"; sessionId: string; account?: string; message?: string; } export interface GatewayMcpResult { message?: string | null; events?: string[]; } export interface GatewayMcpMessage extends GatewayIdentity { type: "gateway.mcp"; requestId: string; request: GatewayMcpRequest; } export interface GatewayMcpReply extends GatewayIdentity { type: "gateway.mcp.result"; requestId: string; ok: boolean; result?: GatewayMcpResult; error?: (typeof MCP_ERRORS)[number]; } export declare function mcpFrameFits(v: unknown): boolean; export declare function isGatewayMcpRequest(v: unknown): v is GatewayMcpRequest; export declare function isGatewayMcpResult(v: unknown): v is GatewayMcpResult; export declare function isGatewayMcpMessage(v: unknown): v is GatewayMcpMessage; export declare function isGatewayMcpReply(v: unknown): v is GatewayMcpReply; //# sourceMappingURL=mcp-contracts.d.ts.map