/** * WeChat Gateway Service for Paean CLI * * Polls WeChat ilink API for incoming messages, routes them through * the agent service, and sends replies back via WeChat. */ import { EventEmitter } from 'events'; export interface WechatGatewayConfig { debug?: boolean; } export type WechatGatewayEvent = { type: 'started'; } | { type: 'stopped'; } | { type: 'message_received'; sender: string; text: string; } | { type: 'reply_sent'; sender: string; } | { type: 'processing_start'; sender: string; text: string; } | { type: 'processing_done'; sender: string; } | { type: 'remote_content'; text: string; partial: boolean; } | { type: 'remote_tool_call'; id: string; name: string; serverName?: string; isMcp: boolean; } | { type: 'remote_tool_result'; id: string; name: string; status: 'completed' | 'error'; } | { type: 'remote_error'; error: string; } | { type: 'error'; error: string; }; export declare class WechatGatewayService extends EventEmitter { private config; private running; private account; private mcpState; private onMcpToolCall; private contextTokenCache; private conversationIdCache; constructor(config?: WechatGatewayConfig); setMcpState(mcpState: unknown, onMcpToolCall: unknown): void; start(): Promise; stop(): Promise; private pollLoop; private processMessage; private backoff; private log; } //# sourceMappingURL=service.d.ts.map