import { Feature } from 'oak-frontend-base/es/types/Feature'; import { EntityDict } from '../oak-app-domain'; import { Cache } from 'oak-frontend-base/es/features/cache'; import { LocalStorage } from 'oak-frontend-base/es/features/localStorage'; import { Environment } from 'oak-frontend-base/es/features/environment'; import wx from 'weixin-js-sdk'; type ConfigOptions = { debug?: boolean; appId: string; timestamp: number; nonceStr: string; signature: string; jsApiList?: wx.jsApiList; openTagList?: wx.openTagList; }; type ParamOptions = wx.IcheckJsApi | wx.IaddCard | wx.IchooseCard | wx.IonMenuShareTimeline | wx.IonMenuShareAppMessage | wx.IonMenuShareQQ | wx.IonMenuShareWeibo | wx.IonMenuShareQZone | wx.IchooseImage | wx.IpreviewImage | wx.IgetLocalImgData | wx.IplaypausestopVoice | wx.IopenLocation | wx.IgetLocation | wx.IscanQRCode | wx.IopenProductSpecificView | wx.IchooseCard | wx.IopenCard | wx.IchooseWXPay; export declare class WechatSdk extends Feature { private cache; private storage; private environment; private landingUrl?; constructor(cache: Cache, storage: LocalStorage, environment: Environment); signatureJsSDK(url: string): Promise; getConfig(config: ConfigOptions): Promise; setLandingUrl(url?: string): void; init(options?: { jsApiList?: wx.jsApiList; openTagList?: wx.openTagList; debug?: boolean; }): Promise; /** * 微信jssdk 传入方法名 */ loadWxAPi(name: wx.ApiMethod, options?: ParamOptions, jsApiList?: wx.jsApiList, openTagList?: wx.openTagList): Promise; subscribeMpMessage(messageTypes: string[], haveToAccept?: boolean, tip?: string): Promise; } export {};