UNPKG

45.2 kBTypeScriptView Raw
1import Taro from "@tarojs/api";
2import { AppConfig } from "@tarojs/api";
3// 广告
4declare const createRewardedVideoAd: () => Promise<{
5 errMsg: string;
6}>;
7declare const createInterstitialAd: () => Promise<{
8 errMsg: string;
9}>;
10// 人脸识别
11declare const stopFaceDetect: () => Promise<{
12 errMsg: string;
13}>;
14declare const initFaceDetect: () => Promise<{
15 errMsg: string;
16}>;
17declare const faceDetect: () => Promise<{
18 errMsg: string;
19}>;
20// 判断支持版本
21declare const isVKSupport: () => Promise<{
22 errMsg: string;
23}>;
24// 视觉算法
25declare const createVKSession: () => Promise<{
26 errMsg: string;
27}>;
28// AliPay
29declare const getOpenUserInfo: () => Promise<{
30 errMsg: string;
31}>;
32// TODO env 环境变量
33declare const canIUse: () => Promise<{
34 errMsg: string;
35}>;
36declare function arrayBufferToBase64(arrayBuffer: any): string;
37declare function base64ToArrayBuffer(base64: any): Uint8Array;
38// 加密
39declare const getUserCryptoManager: () => Promise<{
40 errMsg: string;
41}>;
42declare const setEnableDebug: () => Promise<{
43 errMsg: string;
44}>;
45declare const getRealtimeLogManager: () => Promise<{
46 errMsg: string;
47}>;
48declare const getLogManager: () => Promise<{
49 errMsg: string;
50}>;
51// 性能
52declare const reportPerformance: () => Promise<{
53 errMsg: string;
54}>;
55declare const getPerformance: () => Promise<{
56 errMsg: string;
57}>;
58/** 跳转系统蓝牙设置页 */
59declare const openSystemBluetoothSetting: () => Promise<{
60 errMsg: string;
61}>;
62/** 跳转系统微信授权管理页 */
63declare const openAppAuthorizeSetting: () => Promise<{
64 errMsg: string;
65}>;
66/** 获取窗口信息 */
67declare const getWindowInfo: typeof Taro.getWindowInfo;
68/** 获取设备设置 */
69declare const getSystemSetting: typeof Taro.getSystemSetting;
70/** 获取设备设置 */
71declare const getDeviceInfo: typeof Taro.getDeviceInfo;
72/** 获取微信APP基础信息 */
73declare const getAppBaseInfo: typeof Taro.getAppBaseInfo;
74/** 获取微信APP授权设置 */
75declare const getAppAuthorizeSetting: typeof Taro.getAppAuthorizeSetting;
76/** 获取设备设置 */
77declare const getSystemInfoSync: typeof Taro.getSystemInfoSync;
78/** 获取系统信息 */
79declare const getSystemInfoAsync: typeof Taro.getSystemInfoAsync;
80/** 获取系统信息 */
81declare const getSystemInfo: typeof Taro.getSystemInfo;
82// 更新
83declare const updateWeChatApp: () => Promise<{
84 errMsg: string;
85}>;
86declare const getUpdateManager: () => Promise<{
87 errMsg: string;
88}>;
89// 应用级事件
90declare const onUnhandledRejection: () => Promise<{
91 errMsg: string;
92}>;
93declare const onThemeChange: () => Promise<{
94 errMsg: string;
95}>;
96declare const onPageNotFound: () => Promise<{
97 errMsg: string;
98}>;
99declare const onError: () => Promise<{
100 errMsg: string;
101}>;
102declare const onAudioInterruptionEnd: () => Promise<{
103 errMsg: string;
104}>;
105declare const onAudioInterruptionBegin: () => Promise<{
106 errMsg: string;
107}>;
108declare const onAppShow: typeof Taro.onAppShow;
109declare const onAppHide: typeof Taro.onAppHide;
110declare const offUnhandledRejection: () => Promise<{
111 errMsg: string;
112}>;
113declare const offThemeChange: () => Promise<{
114 errMsg: string;
115}>;
116declare const offPageNotFound: () => Promise<{
117 errMsg: string;
118}>;
119declare const offError: () => Promise<{
120 errMsg: string;
121}>;
122declare const offAudioInterruptionEnd: () => Promise<{
123 errMsg: string;
124}>;
125declare const offAudioInterruptionBegin: () => Promise<{
126 errMsg: string;
127}>;
128declare const offAppShow: typeof Taro.offWindowResize;
129declare const offAppHide: typeof Taro.offWindowResize;
130// 生命周期
131declare const getLaunchOptionsSync: () => Promise<{
132 errMsg: string;
133}>;
134declare const getEnterOptionsSync: () => Promise<{
135 errMsg: string;
136}>;
137// 画布
138/** 创建离屏 canvas 实例 */
139declare const createOffscreenCanvas: () => Promise<{
140 errMsg: string;
141}>;
142/**
143 * 创建 canvas 的绘图上下文 CanvasContext 对象
144 */
145declare const createCanvasContext: typeof Taro.createCanvasContext;
146/**
147 * 把当前画布指定区域的内容导出生成指定大小的图片。在 draw() 回调里调用该方法才能保证图片导出成功。
148 * @todo 暂未支持尺寸相关功能
149 */
150declare const canvasToTempFilePath: typeof Taro.canvasToTempFilePath;
151/**
152 * 将像素数据绘制到画布。在自定义组件下,第二个参数传入自定义组件实例 this,以操作组件内 <canvas> 组件
153 * @todo 暂未支持尺寸相关功能
154 */
155declare const canvasPutImageData: typeof Taro.canvasPutImageData;
156/**
157 * 获取 canvas 区域隐含的像素数据。
158 */
159declare const canvasGetImageData: typeof Taro.canvasGetImageData;
160declare class cloud implements Taro.cloud {
161 Cloud: new (options: Taro.cloud.IOptions) => Taro.Cloud;
162 init: () => Promise<{
163 errMsg: string;
164 }>;
165 CloudID: () => Promise<{
166 errMsg: string;
167 }>;
168 // @ts-ignore
169 callFunction: () => Promise<{
170 errMsg: string;
171 }>;
172 // @ts-ignore
173 uploadFile: () => Promise<{
174 errMsg: string;
175 }>;
176 // @ts-ignore
177 downloadFile: () => Promise<{
178 errMsg: string;
179 }>;
180 // @ts-ignore
181 getTempFileURL: () => Promise<{
182 errMsg: string;
183 }>;
184 // @ts-ignore
185 deleteFile: () => Promise<{
186 errMsg: string;
187 }>;
188 // @ts-ignore
189 database: () => Promise<{
190 errMsg: string;
191 }>;
192 // @ts-ignore
193 callContainer: () => Promise<{
194 errMsg: string;
195 }>;
196}
197declare const reportMonitor: () => Promise<{
198 errMsg: string;
199}>;
200declare const reportAnalytics: () => Promise<{
201 errMsg: string;
202}>;
203declare const reportEvent: () => Promise<{
204 errMsg: string;
205}>;
206declare const getExptInfoSync: () => Promise<{
207 errMsg: string;
208}>;
209/**
210 * 停止监听加速度数据。
211 */
212declare const stopAccelerometer: typeof Taro.stopAccelerometer;
213/**
214 * 开始监听加速度数据。
215 */
216declare const startAccelerometer: typeof Taro.startAccelerometer;
217/**
218 * 监听加速度数据事件。频率根据 Taro.startAccelerometer() 的 interval 参数。可使用 Taro.stopAccelerometer() 停止监听。
219 */
220declare const onAccelerometerChange: typeof Taro.onAccelerometerChange;
221/**
222 * 取消监听加速度数据事件,参数为空,则取消所有的事件监听
223 */
224declare const offAccelerometerChange: typeof Taro.offAccelerometerChange;
225// 无障碍
226declare const checkIsOpenAccessibility: () => Promise<{
227 errMsg: string;
228}>;
229// 电量
230declare const getBatteryInfoSync: () => Promise<{
231 errMsg: string;
232}>;
233declare const getBatteryInfo: typeof Taro.getBatteryInfo;
234// 蓝牙-通用
235declare const stopBluetoothDevicesDiscovery: () => Promise<{
236 errMsg: string;
237}>;
238declare const startBluetoothDevicesDiscovery: () => Promise<{
239 errMsg: string;
240}>;
241declare const openBluetoothAdapter: () => Promise<{
242 errMsg: string;
243}>;
244declare const onBluetoothDeviceFound: () => Promise<{
245 errMsg: string;
246}>;
247declare const onBluetoothAdapterStateChange: () => Promise<{
248 errMsg: string;
249}>;
250declare const offBluetoothDeviceFound: () => Promise<{
251 errMsg: string;
252}>;
253declare const offBluetoothAdapterStateChange: () => Promise<{
254 errMsg: string;
255}>;
256declare const makeBluetoothPair: () => Promise<{
257 errMsg: string;
258}>;
259declare const isBluetoothDevicePaired: () => Promise<{
260 errMsg: string;
261}>;
262declare const getConnectedBluetoothDevices: () => Promise<{
263 errMsg: string;
264}>;
265declare const getBluetoothDevices: () => Promise<{
266 errMsg: string;
267}>;
268declare const getBluetoothAdapterState: () => Promise<{
269 errMsg: string;
270}>;
271declare const closeBluetoothAdapter: () => Promise<{
272 errMsg: string;
273}>;
274// 蓝牙-低功耗中心设备
275declare const writeBLECharacteristicValue: () => Promise<{
276 errMsg: string;
277}>;
278declare const setBLEMTU: () => Promise<{
279 errMsg: string;
280}>;
281declare const readBLECharacteristicValue: () => Promise<{
282 errMsg: string;
283}>;
284declare const onBLEMTUChange: () => Promise<{
285 errMsg: string;
286}>;
287declare const onBLEConnectionStateChange: () => Promise<{
288 errMsg: string;
289}>;
290declare const onBLECharacteristicValueChange: () => Promise<{
291 errMsg: string;
292}>;
293declare const offBLEMTUChange: () => Promise<{
294 errMsg: string;
295}>;
296declare const offBLEConnectionStateChange: () => Promise<{
297 errMsg: string;
298}>;
299declare const offBLECharacteristicValueChange: () => Promise<{
300 errMsg: string;
301}>;
302declare const notifyBLECharacteristicValueChange: () => Promise<{
303 errMsg: string;
304}>;
305declare const getBLEMTU: () => Promise<{
306 errMsg: string;
307}>;
308declare const getBLEDeviceServices: () => Promise<{
309 errMsg: string;
310}>;
311declare const getBLEDeviceRSSI: () => Promise<{
312 errMsg: string;
313}>;
314declare const getBLEDeviceCharacteristics: () => Promise<{
315 errMsg: string;
316}>;
317declare const createBLEConnection: () => Promise<{
318 errMsg: string;
319}>;
320declare const closeBLEConnection: () => Promise<{
321 errMsg: string;
322}>;
323// 蓝牙-低功耗外围设备
324declare const onBLEPeripheralConnectionStateChanged: () => Promise<{
325 errMsg: string;
326}>;
327declare const offBLEPeripheralConnectionStateChanged: () => Promise<{
328 errMsg: string;
329}>;
330declare const createBLEPeripheralServer: () => Promise<{
331 errMsg: string;
332}>;
333// 日历
334declare const addPhoneRepeatCalendar: () => Promise<{
335 errMsg: string;
336}>;
337declare const addPhoneCalendar: () => Promise<{
338 errMsg: string;
339}>;
340/**
341 * 设置系统剪贴板的内容
342 */
343declare const setClipboardData: typeof Taro.setClipboardData;
344/**
345 * 获取系统剪贴板的内容
346 */
347declare const getClipboardData: typeof Taro.getClipboardData;
348/**
349 * 停止监听罗盘数据
350 */
351declare const stopCompass: typeof Taro.stopCompass;
352/**
353 * 开始监听罗盘数据
354 */
355declare const startCompass: typeof Taro.startCompass;
356/**
357 * 监听罗盘数据变化事件。频率:5 次/秒,接口调用后会自动开始监听,可使用 wx.stopCompass 停止监听。
358 */
359declare const onCompassChange: typeof Taro.onCompassChange;
360/**
361 * 取消监听罗盘数据变化事件,参数为空,则取消所有的事件监听。
362 */
363declare const offCompassChange: typeof Taro.offCompassChange;
364// 联系人
365declare const chooseContact: () => Promise<{
366 errMsg: string;
367}>;
368declare const addPhoneContact: () => Promise<{
369 errMsg: string;
370}>;
371// 加密
372declare const getRandomValues: () => Promise<{
373 errMsg: string;
374}>;
375// 陀螺仪
376declare const stopGyroscope: () => Promise<{
377 errMsg: string;
378}>;
379declare const startGyroscope: () => Promise<{
380 errMsg: string;
381}>;
382declare const onGyroscopeChange: () => Promise<{
383 errMsg: string;
384}>;
385declare const offGyroscopeChange: () => Promise<{
386 errMsg: string;
387}>;
388// 蓝牙-信标(Beacon)
389declare const stopBeaconDiscovery: () => Promise<{
390 errMsg: string;
391}>;
392declare const startBeaconDiscovery: () => Promise<{
393 errMsg: string;
394}>;
395declare const onBeaconUpdate: () => Promise<{
396 errMsg: string;
397}>;
398declare const onBeaconServiceChange: () => Promise<{
399 errMsg: string;
400}>;
401declare const offBeaconUpdate: () => Promise<{
402 errMsg: string;
403}>;
404declare const offBeaconServiceChange: () => Promise<{
405 errMsg: string;
406}>;
407declare const getBeacons: () => Promise<{
408 errMsg: string;
409}>;
410// 键盘
411declare const onKeyboardHeightChange: () => Promise<{
412 errMsg: string;
413}>;
414declare const offKeyboardHeightChange: () => Promise<{
415 errMsg: string;
416}>;
417declare const hideKeyboard: () => Promise<{
418 errMsg: string;
419}>;
420declare const getSelectedTextRange: () => Promise<{
421 errMsg: string;
422}>;
423// 内存
424declare const onMemoryWarning: () => Promise<{
425 errMsg: string;
426}>;
427declare const offMemoryWarning: () => Promise<{
428 errMsg: string;
429}>;
430/**
431 * 停止监听设备方向的变化。
432 */
433declare const stopDeviceMotionListening: typeof Taro.stopDeviceMotionListening;
434/**
435 * 开始监听设备方向的变化。
436 */
437declare const startDeviceMotionListening: typeof Taro.startDeviceMotionListening;
438/**
439 * 监听设备方向变化事件。
440 */
441declare const onDeviceMotionChange: typeof Taro.onDeviceMotionChange;
442/**
443 * 取消监听设备方向变化事件,参数为空,则取消所有的事件监听。
444 */
445declare const offDeviceMotionChange: typeof Taro.offDeviceMotionChange;
446declare const getNetworkType: typeof Taro.getNetworkType;
447/**
448 * 在最近的八次网络请求中, 出现下列三个现象之一则判定弱网。
449 * - 出现三次以上连接超时
450 * - 出现三次 rtt 超过 400
451 * - 出现三次以上的丢包
452 * > 弱网事件通知规则是: 弱网状态变化时立即通知, 状态不变时 30s 内最多通知一次。
453 */
454declare const onNetworkWeakChange: () => Promise<{
455 errMsg: string;
456}>;
457declare const onNetworkStatusChange: typeof Taro.onNetworkStatusChange;
458declare const offNetworkWeakChange: () => Promise<{
459 errMsg: string;
460}>;
461declare const offNetworkStatusChange: typeof Taro.offNetworkStatusChange;
462declare const getLocalIPAddress: () => Promise<{
463 errMsg: string;
464}>;
465// NFC
466declare const stopHCE: () => Promise<{
467 errMsg: string;
468}>;
469declare const startHCE: () => Promise<{
470 errMsg: string;
471}>;
472declare const sendHCEMessage: () => Promise<{
473 errMsg: string;
474}>;
475declare const onHCEMessage: () => Promise<{
476 errMsg: string;
477}>;
478declare const offHCEMessage: () => Promise<{
479 errMsg: string;
480}>;
481declare const getNFCAdapter: () => Promise<{
482 errMsg: string;
483}>;
484declare const getHCEState: () => Promise<{
485 errMsg: string;
486}>;
487declare const makePhoneCall: typeof Taro.makePhoneCall;
488// 扫码
489declare const scanCode: (options?: Partial<{
490 needResult: number;
491}>) => Promise<any>;
492// 屏幕
493declare const setVisualEffectOnCapture: () => Promise<{
494 errMsg: string;
495}>;
496declare const setScreenBrightness: () => Promise<{
497 errMsg: string;
498}>;
499declare const setKeepScreenOn: () => Promise<{
500 errMsg: string;
501}>;
502declare const onUserCaptureScreen: () => Promise<{
503 errMsg: string;
504}>;
505declare const offUserCaptureScreen: () => Promise<{
506 errMsg: string;
507}>;
508declare const getScreenBrightness: () => Promise<{
509 errMsg: string;
510}>;
511/**
512 * 使手机发生较短时间的振动(15 ms)。仅在 iPhone 7 / 7 Plus 以上及 Android 机型生效
513 */
514declare const vibrateShort: typeof Taro.vibrateShort;
515/**
516 * 使手机发生较长时间的振动(400 ms)
517 */
518declare const vibrateLong: typeof Taro.vibrateLong;
519// Wi-Fi
520declare const stopWifi: () => Promise<{
521 errMsg: string;
522}>;
523declare const startWifi: () => Promise<{
524 errMsg: string;
525}>;
526declare const setWifiList: () => Promise<{
527 errMsg: string;
528}>;
529declare const onWifiConnectedWithPartialInfo: () => Promise<{
530 errMsg: string;
531}>;
532declare const onWifiConnected: () => Promise<{
533 errMsg: string;
534}>;
535declare const onGetWifiList: () => Promise<{
536 errMsg: string;
537}>;
538declare const offWifiConnected: () => Promise<{
539 errMsg: string;
540}>;
541declare const offGetWifiList: () => Promise<{
542 errMsg: string;
543}>;
544declare const getWifiList: () => Promise<{
545 errMsg: string;
546}>;
547declare const getConnectedWifi: () => Promise<{
548 errMsg: string;
549}>;
550declare const connectWifi: () => Promise<{
551 errMsg: string;
552}>;
553// 第三方平台
554declare const getExtConfigSync: () => Promise<{
555 errMsg: string;
556}>;
557declare const getExtConfig: () => Promise<{
558 errMsg: string;
559}>;
560// 文件
561declare const saveFileToDisk: () => Promise<{
562 errMsg: string;
563}>;
564declare const saveFile: () => Promise<{
565 errMsg: string;
566}>;
567declare const removeSavedFile: () => Promise<{
568 errMsg: string;
569}>;
570declare const openDocument: () => Promise<{
571 errMsg: string;
572}>;
573declare const getSavedFileList: () => Promise<{
574 errMsg: string;
575}>;
576declare const getSavedFileInfo: () => Promise<{
577 errMsg: string;
578}>;
579declare const getFileSystemManager: () => Promise<{
580 errMsg: string;
581}>;
582declare const getFileInfo: () => Promise<{
583 errMsg: string;
584}>;
585declare const getApp: typeof Taro.getApp;
586// 自定义组件
587declare const getCurrentInstance: () => Taro.Current;
588// 位置
589declare const stopLocationUpdate: () => Promise<{
590 errMsg: string;
591}>;
592declare const startLocationUpdateBackground: () => Promise<{
593 errMsg: string;
594}>;
595declare const startLocationUpdate: () => Promise<{
596 errMsg: string;
597}>;
598declare const openLocation: (options?: Partial<{
599 scale: number;
600}>) => Promise<any>;
601declare const onLocationChangeError: () => Promise<{
602 errMsg: string;
603}>;
604declare const onLocationChange: () => Promise<{
605 errMsg: string;
606}>;
607declare const offLocationChangeError: () => Promise<{
608 errMsg: string;
609}>;
610declare const offLocationChange: () => Promise<{
611 errMsg: string;
612}>;
613declare const getLocation: (options?: Partial<Taro.getLocation.Option>) => Promise<Taro.getLocation.SuccessCallbackResult>;
614declare const choosePoi: () => Promise<{
615 errMsg: string;
616}>;
617declare const getFuzzyLocation: () => Promise<{
618 errMsg: string;
619}>;
620/**
621 * 打开地图选择位置。
622 */
623declare const chooseLocation: typeof Taro.chooseLocation;
624// 音频
625declare const stopVoice: () => Promise<{
626 errMsg: string;
627}>;
628declare const setInnerAudioOption: () => Promise<{
629 errMsg: string;
630}>;
631declare const playVoice: () => Promise<{
632 errMsg: string;
633}>;
634declare const pauseVoice: () => Promise<{
635 errMsg: string;
636}>;
637declare const getAvailableAudioSources: () => Promise<{
638 errMsg: string;
639}>;
640declare const createWebAudioContext: () => Promise<{
641 errMsg: string;
642}>;
643declare const createMediaAudioPlayer: () => Promise<{
644 errMsg: string;
645}>;
646/**
647 * 创建内部 audio 上下文 InnerAudioContext 对象。
648 */
649declare const createInnerAudioContext: typeof Taro.createInnerAudioContext;
650declare const createAudioContext: () => Promise<{
651 errMsg: string;
652}>;
653type TCallbackManagerParam = (...arr: unknown[]) => void;
654interface ICallbackManagerOption {
655 callback?: TCallbackManagerParam;
656 ctx?: any;
657 [key: string]: unknown;
658}
659type TCallbackManagerListItem = (TCallbackManagerParam | ICallbackManagerOption);
660type TCallbackManagerList = TCallbackManagerListItem[];
661declare class CallbackManager {
662 callbacks: TCallbackManagerList;
663 /**
664 * 添加回调
665 * @param {{ callback: function, ctx: any } | function} opt
666 */
667 add: (opt?: TCallbackManagerListItem) => void;
668 /**
669 * 移除回调
670 * @param {{ callback: function, ctx: any } | function} opt
671 */
672 remove: (opt?: TCallbackManagerListItem) => void;
673 /**
674 * 获取回调函数数量
675 * @return {number}
676 */
677 count: () => number;
678 /**
679 * 触发回调
680 * @param {...any} args 回调的调用参数
681 */
682 trigger: (...args: TCallbackManagerList) => void;
683}
684declare class BackgroundAudioManager implements Taro.BackgroundAudioManager {
685 Instance?: HTMLAudioElement;
686 errorStack: CallbackManager;
687 stopStack: CallbackManager;
688 __startTime: number;
689 constructor();
690 set src(e: string);
691 get src(): string;
692 set startTime(e: number);
693 get startTime(): number;
694 set title(e: string);
695 get title(): string;
696 set epname(e: string);
697 get epname(): string;
698 set singer(e: string);
699 get singer(): string;
700 set coverImgUrl(e: string);
701 get coverImgUrl(): string;
702 set webUrl(e: string);
703 get webUrl(): string;
704 set protocol(e: string);
705 get protocol(): string;
706 set playbackRate(e: number);
707 get playbackRate(): number;
708 get duration(): number;
709 get currentTime(): number;
710 get paused(): boolean;
711 get buffered(): number;
712 set referrerPolicy(e: string);
713 get referrerPolicy(): string;
714 private setProperty;
715 private dataset;
716 play: () => Promise<void> | undefined;
717 pause: () => void | undefined;
718 seek: (position: number) => void;
719 stop: () => void;
720 onCanplay: (callback?: () => void) => void | undefined;
721 onWaiting: (callback?: () => void) => void | undefined;
722 onError: (callback?: ((res: Taro.InnerAudioContext.onErrorDetail) => void) | undefined) => void;
723 onPlay: (callback?: () => void) => void | undefined;
724 onPause: (callback?: () => void) => void | undefined;
725 onSeeking: (callback?: () => void) => void | undefined;
726 onSeeked: (callback?: () => void) => void | undefined;
727 onEnded: (callback?: () => void) => void | undefined;
728 onStop: (callback?: () => void) => void;
729 onTimeUpdate: (callback?: () => void) => void | undefined;
730 onPrev: () => Promise<{
731 errMsg: string;
732 }>;
733 onNext: () => Promise<{
734 errMsg: string;
735 }>;
736 offCanplay: (callback?: () => void) => void | undefined;
737 offWaiting: (callback?: () => void) => void | undefined;
738 offError: (callback?: () => void) => void;
739 offPlay: (callback?: () => void) => void | undefined;
740 offPause: (callback?: () => void) => void | undefined;
741 offSeeking: (callback?: () => void) => void | undefined;
742 offSeeked: (callback?: () => void) => void | undefined;
743 offEnded: (callback?: () => void) => void | undefined;
744 offStop: (callback?: () => void) => void;
745 offTimeUpdate: (callback?: () => void) => void | undefined;
746 offPrev: () => Promise<{
747 errMsg: string;
748 }>;
749 offNext: () => Promise<{
750 errMsg: string;
751 }>;
752}
753// 背景音频
754declare const stopBackgroundAudio: () => Promise<{
755 errMsg: string;
756}>;
757declare const seekBackgroundAudio: () => Promise<{
758 errMsg: string;
759}>;
760declare const playBackgroundAudio: () => Promise<{
761 errMsg: string;
762}>;
763declare const pauseBackgroundAudio: () => Promise<{
764 errMsg: string;
765}>;
766declare const onBackgroundAudioStop: () => Promise<{
767 errMsg: string;
768}>;
769declare const onBackgroundAudioPlay: () => Promise<{
770 errMsg: string;
771}>;
772declare const onBackgroundAudioPause: () => Promise<{
773 errMsg: string;
774}>;
775declare const getBackgroundAudioPlayerState: () => Promise<{
776 errMsg: string;
777}>;
778/**
779 * 获取全局唯一的背景音频管理器
780 */
781declare const getBackgroundAudioManager: () => BackgroundAudioManager;
782// 相机
783declare const createCameraContext: () => Promise<{
784 errMsg: string;
785}>;
786// 图片
787declare const saveImageToPhotosAlbum: () => Promise<{
788 errMsg: string;
789}>;
790declare const previewMedia: () => Promise<{
791 errMsg: string;
792}>;
793/**
794 * 获取图片信息。网络图片需先配置download域名才能生效。
795 */
796declare const getImageInfo: typeof Taro.getImageInfo;
797/**
798 * previewImage api基于开源的React组件[react-wx-images-viewer](https://github.com/react-ld/react-wx-images-viewer)开发,感谢!
799 */
800/**
801 * 在新页面中全屏预览图片。预览的过程中用户可以进行保存图片、发送给朋友等操作。
802 */
803declare const previewImage: typeof Taro.previewImage;
804declare const compressImage: () => Promise<{
805 errMsg: string;
806}>;
807declare const chooseMessageFile: () => Promise<{
808 errMsg: string;
809}>;
810/**
811 * 从本地相册选择图片或使用相机拍照。
812 */
813declare const chooseImage: typeof Taro.chooseImage;
814// 实时音视频
815declare const createLivePusherContext: () => Promise<{
816 errMsg: string;
817}>;
818declare const createLivePlayerContext: () => Promise<{
819 errMsg: string;
820}>;
821// 地图
822declare const createMapContext: () => Promise<{
823 errMsg: string;
824}>;
825// 画面录制器
826declare const createMediaRecorder: () => Promise<{
827 errMsg: string;
828}>;
829// 录音
830declare const stopRecord: () => Promise<{
831 errMsg: string;
832}>;
833declare const startRecord: () => Promise<{
834 errMsg: string;
835}>;
836declare const getRecorderManager: () => Promise<{
837 errMsg: string;
838}>;
839// 视频
840declare const saveVideoToPhotosAlbum: () => Promise<{
841 errMsg: string;
842}>;
843declare const openVideoEditor: () => Promise<{
844 errMsg: string;
845}>;
846declare const getVideoInfo: () => Promise<{
847 errMsg: string;
848}>;
849/**
850 * 创建 video 上下文 VideoContext 对象。
851 */
852declare const createVideoContext: typeof Taro.createVideoContext;
853declare const compressVideo: () => Promise<{
854 errMsg: string;
855}>;
856/**
857 * 拍摄视频或从手机相册中选视频。
858 */
859declare const chooseVideo: typeof Taro.chooseVideo;
860declare const chooseMedia: () => Promise<{
861 errMsg: string;
862}>;
863// 视频解码器
864declare const createVideoDecoder: () => Promise<{
865 errMsg: string;
866}>;
867// 音视频合成
868declare const createMediaContainer: () => Promise<{
869 errMsg: string;
870}>;
871// 实时语音
872declare const updateVoIPChatMuteConfig: () => Promise<{
873 errMsg: string;
874}>;
875declare const subscribeVoIPVideoMembers: () => Promise<{
876 errMsg: string;
877}>;
878declare const setEnable1v1Chat: () => Promise<{
879 errMsg: string;
880}>;
881declare const onVoIPVideoMembersChanged: () => Promise<{
882 errMsg: string;
883}>;
884declare const onVoIPChatStateChanged: () => Promise<{
885 errMsg: string;
886}>;
887declare const onVoIPChatSpeakersChanged: () => Promise<{
888 errMsg: string;
889}>;
890declare const onVoIPChatMembersChanged: () => Promise<{
891 errMsg: string;
892}>;
893declare const onVoIPChatInterrupted: () => Promise<{
894 errMsg: string;
895}>;
896declare const offVoIPVideoMembersChanged: () => Promise<{
897 errMsg: string;
898}>;
899declare const offVoIPChatStateChanged: () => Promise<{
900 errMsg: string;
901}>;
902declare const offVoIPChatMembersChanged: () => Promise<{
903 errMsg: string;
904}>;
905declare const offVoIPChatInterrupted: () => Promise<{
906 errMsg: string;
907}>;
908declare const joinVoIPChat: () => Promise<{
909 errMsg: string;
910}>;
911declare const exitVoIPChat: () => Promise<{
912 errMsg: string;
913}>;
914// 跳转
915declare const openEmbeddedMiniProgram: () => Promise<{
916 errMsg: string;
917}>;
918declare const navigateToMiniProgram: () => Promise<{
919 errMsg: string;
920}>;
921declare const navigateBackMiniProgram: () => Promise<{
922 errMsg: string;
923}>;
924declare const exitMiniProgram: () => Promise<{
925 errMsg: string;
926}>;
927declare const openBusinessView: () => Promise<{
928 errMsg: string;
929}>;
930/**
931 * 下载文件资源到本地。客户端直接发起一个 HTTPS GET 请求,返回文件的本地临时路径。使用前请注意阅读相关说明。
932 * 注意:请在服务端响应的 header 中指定合理的 Content-Type 字段,以保证客户端正确处理文件类型。
933 */
934declare const downloadFile: typeof Taro.downloadFile;
935// mDNS
936declare const stopLocalServiceDiscovery: () => Promise<{
937 errMsg: string;
938}>;
939declare const startLocalServiceDiscovery: () => Promise<{
940 errMsg: string;
941}>;
942declare const onLocalServiceResolveFail: () => Promise<{
943 errMsg: string;
944}>;
945declare const onLocalServiceLost: () => Promise<{
946 errMsg: string;
947}>;
948declare const onLocalServiceFound: () => Promise<{
949 errMsg: string;
950}>;
951declare const onLocalServiceDiscoveryStop: () => Promise<{
952 errMsg: string;
953}>;
954declare const offLocalServiceResolveFail: () => Promise<{
955 errMsg: string;
956}>;
957declare const offLocalServiceLost: () => Promise<{
958 errMsg: string;
959}>;
960declare const offLocalServiceFound: () => Promise<{
961 errMsg: string;
962}>;
963declare const offLocalServiceDiscoveryStop: () => Promise<{
964 errMsg: string;
965}>;
966declare const request: typeof Taro.request;
967declare const addInterceptor: any;
968// TCP 通信
969declare const createTCPSocket: () => Promise<{
970 errMsg: string;
971}>;
972// UDP 通信
973declare const createUDPSocket: () => Promise<{
974 errMsg: string;
975}>;
976/**
977 * 将本地资源上传到服务器。客户端发起一个 HTTPS POST 请求,其中 content-type 为 multipart/form-data。使用前请注意阅读相关说明。
978 */
979declare const uploadFile: typeof Taro.uploadFile;
980declare function sendSocketMessage(): void;
981declare function onSocketOpen(): void;
982declare function onSocketMessage(): void;
983declare function onSocketError(): void;
984declare function onSocketClose(): void;
985declare function connectSocket(options: any): Promise<unknown>;
986declare function closeSocket(): void;
987// 帐号信息
988declare const getAccountInfoSync: () => Promise<{
989 errMsg: string;
990}>;
991// 收货地址
992declare const chooseAddress: () => Promise<{
993 errMsg: string;
994}>;
995// 授权
996declare const authorizeForMiniProgram: () => Promise<{
997 errMsg: string;
998}>;
999declare const authorize: () => Promise<{
1000 errMsg: string;
1001}>;
1002// 卡券
1003declare const openCard: () => Promise<{
1004 errMsg: string;
1005}>;
1006declare const addCard: () => Promise<{
1007 errMsg: string;
1008}>;
1009// 视频号
1010declare const reserveChannelsLive: () => Promise<{
1011 errMsg: string;
1012}>;
1013declare const openChannelsLive: () => Promise<{
1014 errMsg: string;
1015}>;
1016declare const openChannelsEvent: () => Promise<{
1017 errMsg: string;
1018}>;
1019declare const openChannelsActivity: () => Promise<{
1020 errMsg: string;
1021}>;
1022declare const getChannelsLiveNoticeInfo: () => Promise<{
1023 errMsg: string;
1024}>;
1025declare const getChannelsLiveInfo: () => Promise<{
1026 errMsg: string;
1027}>;
1028// 微信客服
1029declare const openCustomerServiceChat: () => Promise<{
1030 errMsg: string;
1031}>;
1032// 过往接口
1033declare const checkIsSupportFacialRecognition: () => Promise<{
1034 errMsg: string;
1035}>;
1036declare const startFacialRecognitionVerify: () => Promise<{
1037 errMsg: string;
1038}>;
1039declare const startFacialRecognitionVerifyAndUploadVideo: () => Promise<{
1040 errMsg: string;
1041}>;
1042declare const faceVerifyForPay: () => Promise<{
1043 errMsg: string;
1044}>;
1045// 收藏
1046declare const addVideoToFavorites: () => Promise<{
1047 errMsg: string;
1048}>;
1049declare const addFileToFavorites: () => Promise<{
1050 errMsg: string;
1051}>;
1052// 微信群
1053declare const getGroupEnterInfo: () => Promise<{
1054 errMsg: string;
1055}>;
1056// 发票
1057declare const chooseInvoiceTitle: () => Promise<{
1058 errMsg: string;
1059}>;
1060declare const chooseInvoice: () => Promise<{
1061 errMsg: string;
1062}>;
1063// 车牌
1064declare const chooseLicensePlate: () => Promise<{
1065 errMsg: string;
1066}>;
1067// 帐号信息
1068declare const pluginLogin: () => Promise<{
1069 errMsg: string;
1070}>;
1071declare const login: () => Promise<{
1072 errMsg: string;
1073}>;
1074declare const checkSession: () => Promise<{
1075 errMsg: string;
1076}>;
1077// 微信红包
1078declare const showRedPackage: () => Promise<{
1079 errMsg: string;
1080}>;
1081// 设置
1082declare const openSetting: () => Promise<{
1083 errMsg: string;
1084}>;
1085declare const getSetting: () => Promise<{
1086 errMsg: string;
1087}>;
1088// 生物认证
1089declare const startSoterAuthentication: () => Promise<{
1090 errMsg: string;
1091}>;
1092declare const checkIsSupportSoterAuthentication: () => Promise<{
1093 errMsg: string;
1094}>;
1095declare const checkIsSoterEnrolledInDevice: () => Promise<{
1096 errMsg: string;
1097}>;
1098// 订阅消息
1099declare const requestSubscribeMessage: () => Promise<{
1100 errMsg: string;
1101}>;
1102// 用户信息
1103declare const getUserProfile: () => Promise<{
1104 errMsg: string;
1105}>;
1106declare const getUserInfo: () => Promise<{
1107 errMsg: string;
1108}>;
1109// 微信运动
1110declare const shareToWeRun: () => Promise<{
1111 errMsg: string;
1112}>;
1113declare const getWeRunData: () => Promise<{
1114 errMsg: string;
1115}>;
1116// 支付
1117declare const requestPayment: () => Promise<{
1118 errMsg: string;
1119}>;
1120declare const requestOrderPayment: () => Promise<{
1121 errMsg: string;
1122}>;
1123// 转发
1124declare const updateShareMenu: () => Promise<{
1125 errMsg: string;
1126}>;
1127declare const showShareMenu: () => Promise<{
1128 errMsg: string;
1129}>;
1130declare const showShareImageMenu: () => Promise<{
1131 errMsg: string;
1132}>;
1133declare const shareVideoMessage: () => Promise<{
1134 errMsg: string;
1135}>;
1136declare const shareFileMessage: () => Promise<{
1137 errMsg: string;
1138}>;
1139declare const onCopyUrl: () => Promise<{
1140 errMsg: string;
1141}>;
1142declare const offCopyUrl: () => Promise<{
1143 errMsg: string;
1144}>;
1145declare const hideShareMenu: () => Promise<{
1146 errMsg: string;
1147}>;
1148declare const getShareInfo: () => Promise<{
1149 errMsg: string;
1150}>;
1151declare const authPrivateMessage: () => Promise<{
1152 errMsg: string;
1153}>;
1154// 数据缓存
1155declare const setStorageSync: typeof Taro.setStorageSync;
1156declare const setStorage: typeof Taro.setStorage;
1157declare const revokeBufferURL: () => Promise<{
1158 errMsg: string;
1159}>;
1160declare const removeStorageSync: typeof Taro.removeStorageSync;
1161declare const removeStorage: typeof Taro.removeStorage;
1162declare const getStorageSync: typeof Taro.getStorageSync;
1163declare const getStorageInfoSync: typeof Taro.getStorageInfoSync;
1164declare const getStorageInfo: typeof Taro.getStorageInfo;
1165declare const getStorage: typeof Taro.getStorage;
1166declare const createBufferURL: () => Promise<{
1167 errMsg: string;
1168}>;
1169declare const clearStorageSync: typeof Taro.clearStorageSync;
1170declare const clearStorage: typeof Taro.clearStorage;
1171// 周期性更新
1172declare const setBackgroundFetchToken: () => Promise<{
1173 errMsg: string;
1174}>;
1175declare const onBackgroundFetchData: () => Promise<{
1176 errMsg: string;
1177}>;
1178declare const getBackgroundFetchToken: () => Promise<{
1179 errMsg: string;
1180}>;
1181declare const getBackgroundFetchData: () => Promise<{
1182 errMsg: string;
1183}>;
1184declare const setPageInfo: () => Promise<{
1185 errMsg: string;
1186}>;
1187// 百度小程序 AI 相关
1188declare const ocrIdCard: () => Promise<{
1189 errMsg: string;
1190}>;
1191declare const ocrBankCard: () => Promise<{
1192 errMsg: string;
1193}>;
1194declare const ocrDrivingLicense: () => Promise<{
1195 errMsg: string;
1196}>;
1197declare const ocrVehicleLicense: () => Promise<{
1198 errMsg: string;
1199}>;
1200declare const textReview: () => Promise<{
1201 errMsg: string;
1202}>;
1203declare const textToAudio: () => Promise<{
1204 errMsg: string;
1205}>;
1206declare const imageAudit: () => Promise<{
1207 errMsg: string;
1208}>;
1209declare const advancedGeneralIdentify: () => Promise<{
1210 errMsg: string;
1211}>;
1212declare const objectDetectIdentify: () => Promise<{
1213 errMsg: string;
1214}>;
1215declare const carClassify: () => Promise<{
1216 errMsg: string;
1217}>;
1218declare const dishClassify: () => Promise<{
1219 errMsg: string;
1220}>;
1221declare const logoClassify: () => Promise<{
1222 errMsg: string;
1223}>;
1224declare const animalClassify: () => Promise<{
1225 errMsg: string;
1226}>;
1227declare const plantClassify: () => Promise<{
1228 errMsg: string;
1229}>;
1230// 用户信息
1231declare const getSwanId: () => Promise<{
1232 errMsg: string;
1233}>;
1234// 百度收银台支付
1235declare const requestPolymerPayment: () => Promise<{
1236 errMsg: string;
1237}>;
1238// 打开小程序
1239declare const navigateToSmartGameProgram: () => Promise<{
1240 errMsg: string;
1241}>;
1242declare const navigateToSmartProgram: () => Promise<{
1243 errMsg: string;
1244}>;
1245declare const navigateBackSmartProgram: () => Promise<{
1246 errMsg: string;
1247}>;
1248declare const preloadSubPackage: () => Promise<{
1249 errMsg: string;
1250}>;
1251// h5 的 createAnimation
1252declare const createAnimation: typeof Taro.createAnimation;
1253// 背景
1254declare const setBackgroundTextStyle: () => Promise<{
1255 errMsg: string;
1256}>;
1257declare const setBackgroundColor: () => Promise<{
1258 errMsg: string;
1259}>;
1260// 自定义组件
1261declare const nextTick: (callback: (...args: any[]) => any) => void;
1262// 字体
1263declare const loadFontFace: typeof Taro.loadFontFace;
1264declare const showToast: typeof Taro.showToast;
1265declare const hideToast: typeof Taro.hideToast;
1266declare const showLoading: typeof Taro.showLoading;
1267declare const hideLoading: typeof Taro.hideLoading;
1268declare const showModal: typeof Taro.showModal;
1269declare const showActionSheet: typeof Taro.showActionSheet;
1270declare const enableAlertBeforeUnload: () => Promise<{
1271 errMsg: string;
1272}>;
1273declare const disableAlertBeforeUnload: () => Promise<{
1274 errMsg: string;
1275}>;
1276// 菜单
1277declare const getMenuButtonBoundingClientRect: () => Promise<{
1278 errMsg: string;
1279}>;
1280// 导航栏
1281declare const showNavigationBarLoading: () => Promise<{
1282 errMsg: string;
1283}>;
1284declare function setNavigationBarTitle(options: any): Promise<Partial<TaroGeneral.CallbackResult> & Record<string, unknown> & TaroGeneral.CallbackResult>;
1285/**
1286 * 设置页面导航条颜色
1287 */
1288declare const setNavigationBarColor: typeof Taro.setNavigationBarColor;
1289declare const hideNavigationBarLoading: () => Promise<{
1290 errMsg: string;
1291}>;
1292declare const hideHomeButton: () => Promise<{
1293 errMsg: string;
1294}>;
1295/**
1296 * 开始下拉刷新。调用后触发下拉刷新动画,效果与用户手动下拉刷新一致。
1297 */
1298declare const startPullDownRefresh: typeof Taro.startPullDownRefresh;
1299/**
1300 * 停止当前页面下拉刷新。
1301 */
1302declare const stopPullDownRefresh: typeof Taro.stopPullDownRefresh;
1303/**
1304 * 将页面滚动到目标位置
1305 */
1306declare const pageScrollTo: typeof Taro.pageScrollTo;
1307// 置顶
1308declare const setTopBarText: () => Promise<{
1309 errMsg: string;
1310}>;
1311declare function initTabBarApis(config?: AppConfig): void;
1312/**
1313 * 显示 tabBar 某一项的右上角的红点
1314 */
1315declare const showTabBarRedDot: typeof Taro.showTabBarRedDot;
1316/**
1317 * 显示 tabBar
1318 */
1319declare const showTabBar: typeof Taro.showTabBar;
1320/**
1321 * 动态设置 tabBar 的整体样式
1322 */
1323declare const setTabBarStyle: typeof Taro.setTabBarStyle;
1324/**
1325 * 动态设置 tabBar 某一项的内容
1326 */
1327declare const setTabBarItem: typeof Taro.setTabBarItem;
1328/**
1329 * 为 tabBar 某一项的右上角添加文本
1330 */
1331declare const setTabBarBadge: typeof Taro.setTabBarBadge;
1332/**
1333 * 移除 tabBar 某一项右上角的文本
1334 */
1335declare const removeTabBarBadge: typeof Taro.removeTabBarBadge;
1336/**
1337 * 隐藏 tabBar 某一项的右上角的红点
1338 */
1339declare const hideTabBarRedDot: typeof Taro.hideTabBarRedDot;
1340/**
1341 * 隐藏 tabBar
1342 */
1343declare const hideTabBar: typeof Taro.hideTabBar;
1344/**
1345 * 设置窗口大小,该接口仅适用于 PC 平台,使用细则请参见指南
1346 */
1347declare const setWindowSize: () => Promise<{
1348 errMsg: string;
1349}>;
1350/**
1351 * 监听窗口尺寸变化事件
1352 */
1353declare const onWindowResize: typeof Taro.onWindowResize;
1354/**
1355 * 取消监听窗口尺寸变化事件
1356 */
1357declare const offWindowResize: typeof Taro.offWindowResize;
1358// Worker
1359declare const createWorker: () => Promise<{
1360 errMsg: string;
1361}>;
1362declare const createSelectorQuery: typeof Taro.createSelectorQuery;
1363declare const createIntersectionObserver: () => Promise<{
1364 errMsg: string;
1365}>;
1366export { createRewardedVideoAd, createInterstitialAd, stopFaceDetect, initFaceDetect, faceDetect, isVKSupport, createVKSession, getOpenUserInfo, canIUse, arrayBufferToBase64, base64ToArrayBuffer, getUserCryptoManager, setEnableDebug, getRealtimeLogManager, getLogManager, reportPerformance, getPerformance, openSystemBluetoothSetting, openAppAuthorizeSetting, getWindowInfo, getSystemSetting, getDeviceInfo, getAppBaseInfo, getAppAuthorizeSetting, getSystemInfoSync, getSystemInfoAsync, getSystemInfo, updateWeChatApp, getUpdateManager, onUnhandledRejection, onThemeChange, onPageNotFound, onError, onAudioInterruptionEnd, onAudioInterruptionBegin, onAppShow, onAppHide, offUnhandledRejection, offThemeChange, offPageNotFound, offError, offAudioInterruptionEnd, offAudioInterruptionBegin, offAppShow, offAppHide, getLaunchOptionsSync, getEnterOptionsSync, createOffscreenCanvas, createCanvasContext, canvasToTempFilePath, canvasPutImageData, canvasGetImageData, cloud, reportMonitor, reportAnalytics, reportEvent, getExptInfoSync, stopAccelerometer, startAccelerometer, onAccelerometerChange, offAccelerometerChange, checkIsOpenAccessibility, getBatteryInfoSync, getBatteryInfo, stopBluetoothDevicesDiscovery, startBluetoothDevicesDiscovery, openBluetoothAdapter, onBluetoothDeviceFound, onBluetoothAdapterStateChange, offBluetoothDeviceFound, offBluetoothAdapterStateChange, makeBluetoothPair, isBluetoothDevicePaired, getConnectedBluetoothDevices, getBluetoothDevices, getBluetoothAdapterState, closeBluetoothAdapter, writeBLECharacteristicValue, setBLEMTU, readBLECharacteristicValue, onBLEMTUChange, onBLEConnectionStateChange, onBLECharacteristicValueChange, offBLEMTUChange, offBLEConnectionStateChange, offBLECharacteristicValueChange, notifyBLECharacteristicValueChange, getBLEMTU, getBLEDeviceServices, getBLEDeviceRSSI, getBLEDeviceCharacteristics, createBLEConnection, closeBLEConnection, onBLEPeripheralConnectionStateChanged, offBLEPeripheralConnectionStateChanged, createBLEPeripheralServer, addPhoneRepeatCalendar, addPhoneCalendar, setClipboardData, getClipboardData, stopCompass, startCompass, onCompassChange, offCompassChange, chooseContact, addPhoneContact, getRandomValues, stopGyroscope, startGyroscope, onGyroscopeChange, offGyroscopeChange, stopBeaconDiscovery, startBeaconDiscovery, onBeaconUpdate, onBeaconServiceChange, offBeaconUpdate, offBeaconServiceChange, getBeacons, onKeyboardHeightChange, offKeyboardHeightChange, hideKeyboard, getSelectedTextRange, onMemoryWarning, offMemoryWarning, stopDeviceMotionListening, startDeviceMotionListening, onDeviceMotionChange, offDeviceMotionChange, getNetworkType, onNetworkWeakChange, onNetworkStatusChange, offNetworkWeakChange, offNetworkStatusChange, getLocalIPAddress, stopHCE, startHCE, sendHCEMessage, onHCEMessage, offHCEMessage, getNFCAdapter, getHCEState, makePhoneCall, scanCode, setVisualEffectOnCapture, setScreenBrightness, setKeepScreenOn, onUserCaptureScreen, offUserCaptureScreen, getScreenBrightness, vibrateShort, vibrateLong, stopWifi, startWifi, setWifiList, onWifiConnectedWithPartialInfo, onWifiConnected, onGetWifiList, offWifiConnected, offGetWifiList, getWifiList, getConnectedWifi, connectWifi, getExtConfigSync, getExtConfig, saveFileToDisk, saveFile, removeSavedFile, openDocument, getSavedFileList, getSavedFileInfo, getFileSystemManager, getFileInfo, getApp, getCurrentInstance, stopLocationUpdate, startLocationUpdateBackground, startLocationUpdate, openLocation, onLocationChangeError, onLocationChange, offLocationChangeError, offLocationChange, getLocation, choosePoi, getFuzzyLocation, chooseLocation, stopVoice, setInnerAudioOption, playVoice, pauseVoice, getAvailableAudioSources, createWebAudioContext, createMediaAudioPlayer, createInnerAudioContext, createAudioContext, stopBackgroundAudio, seekBackgroundAudio, playBackgroundAudio, pauseBackgroundAudio, onBackgroundAudioStop, onBackgroundAudioPlay, onBackgroundAudioPause, getBackgroundAudioPlayerState, getBackgroundAudioManager, createCameraContext, saveImageToPhotosAlbum, previewMedia, getImageInfo, previewImage, compressImage, chooseMessageFile, chooseImage, createLivePusherContext, createLivePlayerContext, createMapContext, createMediaRecorder, stopRecord, startRecord, getRecorderManager, saveVideoToPhotosAlbum, openVideoEditor, getVideoInfo, createVideoContext, compressVideo, chooseVideo, chooseMedia, createVideoDecoder, createMediaContainer, updateVoIPChatMuteConfig, subscribeVoIPVideoMembers, setEnable1v1Chat, onVoIPVideoMembersChanged, onVoIPChatStateChanged, onVoIPChatSpeakersChanged, onVoIPChatMembersChanged, onVoIPChatInterrupted, offVoIPVideoMembersChanged, offVoIPChatStateChanged, offVoIPChatMembersChanged, offVoIPChatInterrupted, joinVoIPChat, exitVoIPChat, openEmbeddedMiniProgram, navigateToMiniProgram, navigateBackMiniProgram, exitMiniProgram, openBusinessView, downloadFile, stopLocalServiceDiscovery, startLocalServiceDiscovery, onLocalServiceResolveFail, onLocalServiceLost, onLocalServiceFound, onLocalServiceDiscoveryStop, offLocalServiceResolveFail, offLocalServiceLost, offLocalServiceFound, offLocalServiceDiscoveryStop, request, addInterceptor, createTCPSocket, createUDPSocket, uploadFile, sendSocketMessage, onSocketOpen, onSocketMessage, onSocketError, onSocketClose, connectSocket, closeSocket, getAccountInfoSync, chooseAddress, authorizeForMiniProgram, authorize, openCard, addCard, reserveChannelsLive, openChannelsLive, openChannelsEvent, openChannelsActivity, getChannelsLiveNoticeInfo, getChannelsLiveInfo, openCustomerServiceChat, checkIsSupportFacialRecognition, startFacialRecognitionVerify, startFacialRecognitionVerifyAndUploadVideo, faceVerifyForPay, addVideoToFavorites, addFileToFavorites, getGroupEnterInfo, chooseInvoiceTitle, chooseInvoice, chooseLicensePlate, pluginLogin, login, checkSession, showRedPackage, openSetting, getSetting, startSoterAuthentication, checkIsSupportSoterAuthentication, checkIsSoterEnrolledInDevice, requestSubscribeMessage, getUserProfile, getUserInfo, shareToWeRun, getWeRunData, requestPayment, requestOrderPayment, updateShareMenu, showShareMenu, showShareImageMenu, shareVideoMessage, shareFileMessage, onCopyUrl, offCopyUrl, hideShareMenu, getShareInfo, authPrivateMessage, setStorageSync, setStorage, revokeBufferURL, removeStorageSync, removeStorage, getStorageSync, getStorageInfoSync, getStorageInfo, getStorage, createBufferURL, clearStorageSync, clearStorage, setBackgroundFetchToken, onBackgroundFetchData, getBackgroundFetchToken, getBackgroundFetchData, setPageInfo, ocrIdCard, ocrBankCard, ocrDrivingLicense, ocrVehicleLicense, textReview, textToAudio, imageAudit, advancedGeneralIdentify, objectDetectIdentify, carClassify, dishClassify, logoClassify, animalClassify, plantClassify, getSwanId, requestPolymerPayment, navigateToSmartGameProgram, navigateToSmartProgram, navigateBackSmartProgram, preloadSubPackage, createAnimation, setBackgroundTextStyle, setBackgroundColor, nextTick, loadFontFace, disableAlertBeforeUnload, enableAlertBeforeUnload, hideLoading, hideToast, showActionSheet, showLoading, showModal, showToast, getMenuButtonBoundingClientRect, showNavigationBarLoading, setNavigationBarTitle, setNavigationBarColor, hideNavigationBarLoading, hideHomeButton, startPullDownRefresh, stopPullDownRefresh, pageScrollTo, setTopBarText, initTabBarApis, showTabBarRedDot, showTabBar, setTabBarStyle, setTabBarItem, setTabBarBadge, removeTabBarBadge, hideTabBarRedDot, hideTabBar, setWindowSize, onWindowResize, offWindowResize, createWorker, createSelectorQuery, createIntersectionObserver };
1367export { getCurrentPages, navigateBack, navigateTo, redirectTo, reLaunch, switchTab } from "@tarojs/router";