@tarojs/taro-h5 3.5.6 → 3.5.7-alpha.0

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