type wxConfig = { appId: string; timestamp: string; nonceStr: string; signature: string; debug: boolean; jsApiList: string[]; }; type wxConfigFromServer = Omit; export declare function addWxJsReadyFnBeforeConfig(fn: () => void): void; export declare function injectWxJsConfig(configFromServer: wxConfigFromServer, debug?: boolean): void; export declare function checkWxJsApi(apiName: string): Promise; export declare function wxJsUpdateAppMessageShareData(shareConfig: { title: string; desc: string; link: string; imgUrl: string; success: () => void; ffail?: (res: { errMsg: string; }) => void; }): void; export declare function wxJsUpdateTimelineShareData(shareConfig: { title: string; link: string; imgUrl: string; success: () => void; fail?: (res: { errMsg: string; }) => void; }): void; export declare function wxJsChooseImage(apiConfig: { count: number; sizeType: ["original", "compressed"] | ["original"] | ["compressed"]; sourceType: ["album", "camera"] | ["album"] | ["camera"]; success: (res: { localIds: string[]; }) => void; fail?: (res: { errMsg: string; }) => void; }): void; export declare function wxJsPreviewImage(apiConfig: { current: string; urls: string[]; }): void; export declare function wxJsUploadImage(apiConfig: { localId: string; isShowProgressTips: 0 | 1; success: (res: { serverId: string; }) => void; fail?: (res: { errMsg: string; }) => void; }): void; export declare function wxJsDownloadImage(apiConfig: { serverId: string; isShowProgressTips: 0 | 1; success: (res: { localId: string; }) => void; fail?: (res: { errMsg: string; }) => void; }): void; export declare function wxJsGetLocalImgData(apiConfig: { localId: string; success: (res: { localData: string; }) => void; fail?: (res: { errMsg: string; }) => void; }): void; export declare function wxJsStartRecord(): void; export declare function wxJsStopRecord(apiConfig: { success: (res: { localId: string; }) => void; fail?: (res: { errMsg: string; }) => void; }): void; export declare function wxJsOnVoiceRecordEnd(apiConfig: { complete: (res: { localId: string; }) => void; }): void; export declare function wxJsPlayVoice(apiConfig: { localId: string; }): void; export declare function wxJsPauseVoice(apiConfig: { localId: string; }): void; export declare function wxJsStopVoice(apiConfig: { localId: string; }): void; export declare function wxJsOnVoicePlayEnd(apiConfig: { success: (res: { localId: string; }) => void; }): void; export declare function wxJsUploadVoice(apiConfig: { localId: string; isShowProgressTips: 0 | 1; success: (res: { serverId: string; }) => void; fail?: (res: { errMsg: string; }) => void; }): void; export declare function wxJsDownloadVoice(apiConfig: { serverId: string; isShowProgressTips: 0 | 1; success: (res: { localId: string; }) => void; fail?: (res: { errMsg: string; }) => void; }): void; export declare function wxJsTranslateVoice(apiConfig: { localId: string; isShowProgressTips: 0 | 1; success: (res: { translateResult: string; }) => void; fail?: (res: { errMsg: string; }) => void; }): void; export declare function wxJsGetNetworkType(apiConfig: { success: (res: { networkType: string; }) => void; fail?: (res: { errMsg: string; }) => void; }): void; export declare function wxJsOpenLocation(apiConfig: { latitude: number; longitude: number; name: string; address: string; scale: number; infoUrl: string; }): void; export declare function wxJsGetLocation(apiConfig: { type: "wgs84" | "gcj02"; success: (res: { latitude: number; longitude: number; speed: number; accuracy: number; }) => void; fail?: (res: { errMsg: string; }) => void; }): void; export declare function wxJsScanQRCode(apiConfig: { needResult: 0 | 1; scanType: ["qrCode", "barCode"] | ["qrCode"] | ["barCode"]; success: (res: { resultStr: string; }) => void; fail?: (res: { errMsg: string; }) => void; }): void; export declare function wxJsPay(config: { appId: string; timeStamp: string; nonceStr: string; package: string; signType: string; paySign: string; }, successCb: () => void, errorCb: (err_msg: string) => void): void; export declare function wxJsLogin(appid: string, redirect_uri: string, scope?: "snsapi_base" | "snsapi_userinfo", state?: string): string; export {}; //# sourceMappingURL=wxJSSDK.d.ts.map