/// import * as xml2js from 'xml2js'; import { IApiConfig } from './WXCore'; export declare class MsgCrypto { static xmlParser: xml2js.Builder; aesModel: string; token: string; appId: string; encodingAesKey: Buffer; iv: Buffer; msgSignature: string; timestamp: string; nonce: string; constructor(config: IApiConfig, msgSignature: string, timestamp: string, nonce: string); getMsgSignature(encryptedMsg: string): string; decrypt(echostr: string): string; /** * 微信消息解密 * @param encryptMsg 加密字符串 */ decryptMsg(encryptMsg: string): any; /** * 微信消息加密 * @param xmlMsg */ encryptMsg(xmlMsg: string): string; KCS7Encoder(textLength: number): string; PKCS7Decoder(buff: Buffer): Buffer; parseXmlToObj(xml: string): any; }