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; }; export declare class WechatSdk extends Feature { private cache; private storage; private environment; private landingUrl?; private lastConfigUrl?; constructor(cache: Cache, storage: LocalStorage, environment: Environment); signatureJsSDK(url: string): Promise; getConfig(config: ConfigOptions): Promise; setLandingUrl(url?: string): void; private initedApiList; private init; /** * 微信jssdk 传入方法名 */ loadWxAPi(name: T, options?: Parameters<(typeof wx)[T]>[0]): Promise; subscribeMpMessage(messageTypes: string[], haveToAccept?: boolean, tip?: string): Promise; } export {};