/** 私有父子 IPC 契约;不得作为公共 HTTP 控制接口暴露。 */ export declare const GATEWAY_PROTOCOL_VERSION: 1; export interface GatewayIdentity { protocolVersion: typeof GATEWAY_PROTOCOL_VERSION; controlInstanceId: string; gatewayInstanceId: string; } export interface GatewayStartMessage extends GatewayIdentity { type: "gateway.start"; configVersion: string; dependencyVersion: string; configPath: string; workspacePath: string; selection: { adapters: string[]; protocols: string[]; applications: string[]; }; } export interface GatewayStopMessage extends GatewayIdentity { type: "gateway.stop"; timeoutMs?: number; } export interface GatewayReadyMessage extends GatewayIdentity { /** 私有管理传输已可用;不代表全部账号在线或协议已完成启动。 */ type: "gateway.ready"; capabilities?: Array<"mcp" | "send" | "message-debug" | "verification">; configVersion: string; dependencyVersion: string; address: { host: "127.0.0.1"; port: number; }; } export interface GatewayFailedMessage extends GatewayIdentity { type: "gateway.failed"; code: "START_FAILED" | "STOP_FAILED" | "INVALID_MESSAGE"; message: string; } export interface GatewayAccountStatusMessage extends GatewayIdentity { type: "gateway.account-status"; accounts: Array<{ platform: string; accountId: string; status: "pending" | "online" | "offline"; }>; } export type GatewayParentMessage = GatewayStartMessage | GatewayStopMessage; export type GatewayChildMessage = GatewayReadyMessage | GatewayFailedMessage | GatewayAccountStatusMessage; export declare function isGatewayAccountStatusMessage(value: unknown): value is GatewayAccountStatusMessage; export declare function isGatewayParentMessage(value: unknown): value is GatewayParentMessage; //# sourceMappingURL=contracts.d.ts.map