/** * useWechat Hook * * Manages the WeChat gateway service within the Ink interactive UI. * Listens for WeChat message events and translates them into UI state * so the App can render incoming/outgoing messages, tool calls, and streaming. */ import type { WechatGatewayService } from '../../wechat/service.js'; import type { ToolCallRecord } from '../components/ToolCallIndicator.js'; export interface WechatRemoteRequest { sender: string; text: string; } export interface CompletedWechatExchange { userMessage: string; assistantContent: string; sender: string; } export interface UseWechatOptions { service: WechatGatewayService | null; } export interface UseWechatReturn { isOnline: boolean; isProcessingRemote: boolean; remoteRequest: WechatRemoteRequest | null; remoteStreamingText: string; remoteToolCallHistory: ToolCallRecord[]; remoteError: string | null; completedCount: number; lastCompletedExchange: CompletedWechatExchange | null; clearCompletedExchange: () => void; } export declare function useWechat(options: UseWechatOptions): UseWechatReturn; //# sourceMappingURL=useWechat.d.ts.map