/** * WeChat 个人微信适配器 * * 实现 PlatformAdapter 接口,使用 HTTP 长轮询获取消息 * 支持多账号,每个账号独立轮询工作线程 * ChatId 格式: weixin:::: */ import type { PlatformAdapter, PlatformSender, PlatformMessageEvent, PlatformActionEvent } from '../types.js'; export declare class WeixinAdapter implements PlatformAdapter { readonly platform: "weixin"; private readonly sender; private readonly messageCallbacks; private readonly actionCallbacks; private isActive; private readonly pollAborts; private readonly seenMessageIds; private readonly consecutiveFailures; private readonly typingTickets; constructor(); start(): Promise; stop(): void; getSender(): PlatformSender; onMessage(callback: (event: PlatformMessageEvent) => void): void; onAction(callback: (event: PlatformActionEvent) => void): void; isAdapterActive(): boolean; private startAccountWorker; private runPollLoop; private processMessage; private determineMessageType; private downloadMediaItems; sendTypingIndicator(chatId: string, status: number): Promise; getAccountStatus(accountId: string): { active: boolean; paused: boolean; reason?: string; }; restartAccount(accountId: string): void; } export declare const weixinAdapter: WeixinAdapter; //# sourceMappingURL=weixin-adapter.d.ts.map