import { Core, Breadcrumb } from '@heimdallr-sdk/core'; import { BaseOptionsType, IAnyObject, voidFun } from '@heimdallr-sdk/types'; interface WxOptionsType extends BaseOptionsType { reqOption?: (rs: (value: WechatMiniprogram.GeneralCallbackResult | PromiseLike) => void, rj: (reason?: any) => void) => WechatMiniprogram.RequestOption; userStoreKey?: string; } type WxTrackTypes = 'show' | 'hide'; interface WxContextType { sid?: string; url?: string; ui?: IAnyObject | string; } declare class WxClient extends Core { private wxContext; private wxSettings; private diff; private requestTasks; readonly breadcrumb: Breadcrumb; constructor(options: WxOptionsType); setWxContext(context: WxContextType): void; clearWxContext(): void; getWxContext(): WxContextType; initAPP(): Promise; getWxSettings(): Promise; isRightEnv(): boolean; report(url: string, data: IAnyObject): Promise; transform(data: IAnyObject): IAnyObject; nextTick(cb: Function, ctx: Object, ...args: any[]): void; setDiff(date: string): void; getTime(): number; lifecycleReport(data: IAnyObject): void; handleOnShow(route: string): void; handleOnHide(route: string): void; cusOnShow(): (original: (query: Record) => void | Promise) => (e: any) => void; cusOnHide(): (original: () => void | Promise) => voidFun; } declare const init: (options: WxOptionsType) => { heimdallrPage: (pageOptions: WechatMiniprogram.Page.Options) => void; track: (type: WxTrackTypes, path: string) => void; }; export { WxClient, init as default };