import { BasePlatformAdapter, MessageEvent, ProcessingOutcome, SendResult } from './platform-base.js'; import type { PlatformConfig } from './platform-base.js'; export interface WeixinConfig extends PlatformConfig { appId?: string; appSecret?: string; encodingAesKey?: string; botToken?: string; ilinkApiUrl?: string; allowedUsers?: string[]; homeChannel?: string; } declare const MAX_MESSAGE_LENGTH = 2048; declare function parseXmlSimple(xml: string): Record; declare function buildXmlReply(fromUser: string, toUser: string, content: string): string; export declare class WeixinChannel extends BasePlatformAdapter { private appId; private appSecret; private encodingAesKey; private botToken; private ilinkApiUrl; private allowedUsers; private homeChannel; private accessToken; private tokenExpiresAt; private pendingReplies; private seenMessages; constructor(config: WeixinConfig); connect(): Promise; disconnect(): Promise; private refreshAccessToken; private getAccessToken; verifySignature(timestamp: string, nonce: string, signature: string): boolean; handleXmlMessage(xmlBody: string): Promise; private weixinApi; private chunkContent; send(chatId: string, content: string, _replyTo?: string, _metadata?: Record): Promise; editMessage(_chatId: string, messageId: string, _content: string, _finalize?: boolean): Promise; sendTyping(_chatId: string, _metadata?: Record): Promise; stopTyping(_chatId: string): Promise; sendTemplate(chatId: string, templateId: string, data: Record, url?: string): Promise; sendImage(chatId: string, imageUrl: string, caption?: string, _replyTo?: string, _metadata?: Record): Promise; sendAnimation(chatId: string, animationUrl: string, caption?: string, replyTo?: string, metadata?: Record): Promise; setMenu(buttons: Array<{ type: string; name: string; key?: string; url?: string; }>): Promise; getChatInfo(chatId: string): Promise>; onProcessingComplete(_event: MessageEvent, _outcome: ProcessingOutcome): void; } export { MAX_MESSAGE_LENGTH, parseXmlSimple, buildXmlReply }; //# sourceMappingURL=weixin.d.ts.map