/** * 微信通道适配器:使用 Wechaty(Web/UOS 协议)接收消息,say() 发送回复。 * 不支持流式(微信无法编辑已发消息),回复在 agent_end 后一次性发送。 * 扫码:scan 事件产生二维码 URL,经 qrcode 库生成 base64 供前端展示。 */ import type { IChannel } from "../types.js"; export interface WechatChannelConfig { /** Puppet 名称,缺省使用 Wechaty 自带 puppet */ puppet?: string; /** 默认绑定的 agentId */ defaultAgentId?: string; } type WechatLoginStatus = "scanning" | "logged_in" | "logged_out"; /** 供 Gateway API 查询当前二维码(base64 Data URL 或 null) */ export declare function getWechatQrCode(): string | null; /** 供 Gateway API 查询登录状态 */ export declare function getWechatStatus(): { status: WechatLoginStatus; userName: string | null; }; /** 重启 Wechaty 以刷新二维码(二维码过期后调用) */ export declare function refreshWechatQrCode(): Promise; export declare function createWechatChannel(config: WechatChannelConfig): IChannel; export {};