@tarojs/plugin-platform-harmony-cpp 4.1.4 → 4.1.5

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.
@@ -1,786 +1,1586 @@
1
- import { TFunc, Current, getCurrentInstance, TaroAny } from "@tarojs/runtime";
2
- import Taro from "@tarojs/taro/types";
3
- declare namespace apis {
4
- interface ICallbackResult {
5
- /** 错误信息 */
6
- errMsg: string;
7
- }
8
- type TCallback<T = Partial<ICallbackResult>> = (res: T) => Promise<void> | void;
9
- interface IMethodParam<T = Partial<ICallbackResult>> {
10
- name: string;
11
- success?: TCallback<T & ICallbackResult>;
12
- fail?: TCallback;
13
- complete?: TCallback<T | ICallbackResult>;
14
- }
15
- interface IMockPromise {
16
- resolve?: typeof Promise.resolve | TFunc;
17
- reject?: typeof Promise.reject | TFunc;
18
- }
19
- class MethodHandler<T = Partial<ICallbackResult>> {
20
- methodName: string;
21
- protected __success?: TCallback<T>;
22
- protected __fail?: TCallback;
23
- protected __complete?: TCallback<T | ICallbackResult>;
24
- protected isHandlerError: boolean;
25
- constructor({ name, success, fail, complete }: IMethodParam<T>);
26
- success<U = Record<string, unknown>>(res?: Partial<T> & Partial<ICallbackResult>, promise?: IMockPromise): Promise<T & U & ICallbackResult>;
27
- fail<U = Record<string, unknown>>(res?: Partial<T> & Partial<ICallbackResult>, promise?: IMockPromise): Promise<T & U & ICallbackResult>;
28
- }
29
- type TCallbackManagerFunc<T extends unknown[] = unknown[]> = (...arr: T) => void;
30
- interface ICallbackManagerOption<T extends unknown[] = unknown[]> {
31
- callback?: TCallbackManagerFunc<T>;
32
- ctx?: any;
33
- [key: string]: unknown;
34
- }
35
- type TCallbackManagerUnit<T extends unknown[] = unknown[]> = (TCallbackManagerFunc<T> | ICallbackManagerOption<T>);
36
- class CallbackManager<T extends unknown[] = unknown[]> {
37
- callbacks: TCallbackManagerUnit<T>[];
38
- /** 添加回调 */
39
- add: (opt?: TCallbackManagerUnit<T>) => void;
40
- /** 移除回调 */
41
- remove: (opt?: TCallbackManagerUnit<T>) => void;
42
- /** 获取回调函数数量 */
43
- count: () => number;
44
- /** 触发回调 */
45
- trigger: (...args: T) => void;
46
- }
47
- const canIUse: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
48
- const arrayBufferToBase64: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
49
- const base64ToArrayBuffer: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
50
- // 加密
51
- const getUserCryptoManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
52
- const setEnableDebug: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
53
- const getRealtimeLogManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
54
- const getLogManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
55
- // 性能
56
- const reportPerformance: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
57
- const getPerformance: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
58
- const preloadWebview: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
59
- const preloadSkylineView: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
60
- const preloadAssets: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
61
- /** 获取窗口信息 */
62
- const getWindowInfo: typeof Taro.getWindowInfo;
63
- /** 获取设备设置 */
64
- const getSystemSetting: typeof Taro.getSystemSetting;
65
- /** 获取设备设置 */
66
- const getDeviceInfo: typeof Taro.getDeviceInfo;
67
- /** 获取微信APP基础信息 */
68
- const getAppBaseInfo: typeof Taro.getAppBaseInfo;
69
- /** 获取微信APP授权设置 */
70
- const getAppAuthorizeSetting: typeof Taro.getAppAuthorizeSetting;
71
- /* 同步版本 */
72
- const getSystemInfoSync: typeof Taro.getSystemInfoSync;
73
- /* 异步版本 */
74
- const getSystemInfo: typeof Taro.getSystemInfo;
75
- // 更新
76
- const updateWeChatApp: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
77
- const getUpdateManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
78
- // 应用级事件
79
- const onUnhandledRejection: typeof Taro.onUnhandledRejection;
80
- const onThemeChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
81
- const onPageNotFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
82
- const onLazyLoadError: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
83
- const onError: typeof Taro.onError;
84
- const onAudioInterruptionEnd: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
85
- const onAudioInterruptionBegin: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
86
- const onAppShow: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
87
- const onAppHide: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
88
- const offUnhandledRejection: typeof Taro.offUnhandledRejection;
89
- const offThemeChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
90
- const offPageNotFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
91
- const offLazyLoadError: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
92
- const offError: typeof Taro.offError;
93
- const offAudioInterruptionEnd: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
94
- const offAudioInterruptionBegin: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
95
- const offAppShow: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
96
- const offAppHide: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
97
- // 生命周期
98
- const getLaunchOptionsSync: typeof Taro.getLaunchOptionsSync;
99
- const getEnterOptionsSync: typeof Taro.getEnterOptionsSync;
100
- // 画布
101
- /** 创建离屏 canvas 实例 */
102
- const createOffscreenCanvas: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
103
- /** 创建 canvas 的绘图上下文 CanvasContext 对象 */
104
- // export const createCanvasContext = /* @__PURE__ */ temporarilyNotSupport('createOffscreenCanvas')
105
- const createCanvasContext: (canvasId: string) => any;
106
- /** 把当前画布指定区域的内容导出生成指定大小的图片 */
107
- const canvasToTempFilePath: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
108
- /** 将像素数据绘制到画布 */
109
- const canvasPutImageData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
110
- /** 获取 canvas 区域隐含的像素数据 */
111
- const canvasGetImageData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
112
- const reportMonitor: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
113
- const reportAnalytics: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
114
- const reportEvent: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
115
- const getExptInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
116
- /**
117
- * 停止监听加速度数据。
118
- */
119
- const stopAccelerometer: typeof Taro.stopAccelerometer;
120
- /**
121
- * 开始监听加速度数据。
122
- */
123
- const startAccelerometer: typeof Taro.startAccelerometer;
124
- /**
125
- * 监听加速度数据事件。频率根据 Taro.startAccelerometer() interval 参数。可使用 Taro.stopAccelerometer() 停止监听。
126
- */
127
- const onAccelerometerChange: typeof Taro.onAccelerometerChange;
128
- /**
129
- * 取消监听加速度数据事件,参数为空,则取消所有的事件监听
130
- */
131
- const offAccelerometerChange: typeof Taro.offAccelerometerChange;
132
- // 无障碍
133
- const checkIsOpenAccessibility: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
134
- // 电量
135
- const getBatteryInfoSync: typeof Taro.getBatteryInfoSync;
136
- const getBatteryInfo: typeof Taro.getBatteryInfo;
137
- // 蓝牙-通用
138
- const stopBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
139
- const startBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
140
- const openBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
141
- const onBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
142
- const onBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
143
- const offBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
144
- const offBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
145
- const makeBluetoothPair: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
146
- const isBluetoothDevicePaired: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
147
- const getConnectedBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
148
- const getBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
149
- const getBluetoothAdapterState: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
150
- const closeBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
151
- // 蓝牙-低功耗中心设备
152
- const writeBLECharacteristicValue: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
153
- const setBLEMTU: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
154
- const readBLECharacteristicValue: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
155
- const onBLEMTUChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
156
- const onBLEConnectionStateChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
157
- const onBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
158
- const offBLEMTUChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
159
- const offBLEConnectionStateChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
160
- const offBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
161
- const notifyBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
162
- const getBLEMTU: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
163
- const getBLEDeviceServices: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
164
- const getBLEDeviceRSSI: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
165
- const getBLEDeviceCharacteristics: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
166
- const createBLEConnection: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
167
- const closeBLEConnection: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
168
- // 蓝牙-低功耗外围设备
169
- const onBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
170
- const offBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
171
- const createBLEPeripheralServer: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
172
- // 日历
173
- const addPhoneRepeatCalendar: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
174
- const addPhoneCalendar: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
175
- /**
176
- * 设置系统剪贴板的内容
177
- */
178
- const setClipboardData: typeof Taro.setClipboardData;
179
- /**
180
- * 获取系统剪贴板的内容
181
- */
182
- const getClipboardData: typeof Taro.getClipboardData;
183
- /**
184
- * 停止监听罗盘数据
185
- */
186
- const stopCompass: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
187
- /**
188
- * 开始监听罗盘数据
189
- */
190
- const startCompass: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
191
- /**
192
- * 监听罗盘数据变化事件。频率:5 次/秒,接口调用后会自动开始监听,可使用 wx.stopCompass 停止监听。
193
- */
194
- const onCompassChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
195
- /**
196
- * 取消监听罗盘数据变化事件,参数为空,则取消所有的事件监听。
197
- */
198
- const offCompassChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
199
- // 联系人
200
- const chooseContact: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
201
- const addPhoneContact: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
202
- // 加密
203
- const getRandomValues: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
204
- /**
205
- * 停止监听加速度数据。
206
- */
207
- const stopGyroscope: typeof Taro.stopGyroscope;
208
- /**
209
- * 开始监听加速度数据。
210
- */
211
- const startGyroscope: typeof Taro.startGyroscope;
212
- /**
213
- * 监听加速度数据事件。频率根据 Taro.startGyroscope() interval 参数。可使用 Taro.stopGyroscope() 停止监听。
214
- */
215
- const onGyroscopeChange: typeof Taro.onGyroscopeChange;
216
- /**
217
- * 取消监听加速度数据事件,参数为空,则取消所有的事件监听
218
- */
219
- const offGyroscopeChange: typeof Taro.offGyroscopeChange;
220
- // 蓝牙-信标(Beacon)
221
- const stopBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
222
- const startBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
223
- const onBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
224
- const onBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
225
- const offBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
226
- const offBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
227
- const getBeacons: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
228
- const onKeyboardHeightChange: typeof Taro.onKeyboardHeightChange;
229
- const offKeyboardHeightChange: typeof Taro.offKeyboardHeightChange;
230
- const hideKeyboard: typeof Taro.hideKeyboard;
231
- const getSelectedTextRange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
232
- const onMemoryWarning: (listener: any) => void;
233
- const offMemoryWarning: (listener: any) => void;
234
- const stopDeviceMotionListening: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
235
- const startDeviceMotionListening: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
236
- const onDeviceMotionChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
237
- const offDeviceMotionChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
238
- const getNetworkType: typeof Taro.getNetworkType;
239
- /**
240
- * 在最近的八次网络请求中, 出现下列三个现象之一则判定弱网。
241
- * - 出现三次以上连接超时
242
- * - 出现三次 rtt 超过 400
243
- * - 出现三次以上的丢包
244
- * > 弱网事件通知规则是: 弱网状态变化时立即通知, 状态不变时 30s 内最多通知一次。
245
- */
246
- const onNetworkWeakChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
247
- const onNetworkStatusChange: typeof Taro.onNetworkStatusChange;
248
- const offNetworkWeakChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
249
- const offNetworkStatusChange: typeof Taro.offNetworkStatusChange;
250
- const getLocalIPAddress: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
251
- // NFC
252
- const stopHCE: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
253
- const startHCE: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
254
- const sendHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
255
- const onHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
256
- const offHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
257
- const getNFCAdapter: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
258
- const getHCEState: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
259
- const makePhoneCall: typeof Taro.makePhoneCall;
260
- // 扫码
261
- const scanCode: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
262
- // 屏幕
263
- const setVisualEffectOnCapture: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
264
- const setScreenBrightness: typeof Taro.setScreenBrightness;
265
- const setKeepScreenOn: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
266
- const onUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
267
- const offUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
268
- const getScreenBrightness: typeof Taro.getScreenBrightness;
269
- const onScreenRecordingStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
270
- const offScreenRecordingStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
271
- const getScreenRecordingState: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
272
- // 短信
273
- const sendSms: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
274
- const vibrateLong: ({ success, fail, complete }?: Taro.vibrateLong.Option) => Promise<unknown>;
275
- const vibrateShort: ({ success, fail, complete }?: Taro.vibrateLong.Option) => Promise<unknown>;
276
- // Wi-Fi
277
- const stopWifi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
278
- const startWifi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
279
- const setWifiList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
280
- const onWifiConnectedWithPartialInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
281
- const onWifiConnected: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
282
- const onGetWifiList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
283
- const offWifiConnectedWithPartialInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
284
- const offWifiConnected: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
285
- const offGetWifiList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
286
- const getWifiList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
287
- const getConnectedWifi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
288
- const connectWifi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
289
- // 第三方平台
290
- const getExtConfigSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
291
- const getExtConfig: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
292
- function validateSavedFilePath(savedFilePath: string): void;
293
- function getFileSystemManager(): Taro.FileSystemManager;
294
- const saveFileToDisk: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
295
- /**
296
- * HarmonyOS 不支持 showMenu 选项,并且 type 目前仅支持 *,详情参见:
297
- * https://developer.harmonyos.com/cn/docs/documentation/doc-references/js-apis-document-0000001168936589#section9616125953711
298
- */
299
- function openDocument(option: Taro.openDocument.Option): Promise<any>;
300
- function saveFile(option: Taro.saveFile.Option): Promise<any>;
301
- function removeSavedFile(option: Taro.removeSavedFile.Option): Promise<any>;
302
- function getFileInfo(option: Taro.getFileInfo.Option): Promise<Taro.getFileInfo.SuccessCallbackResult | Taro.getFileInfo.FailCallbackResult>;
303
- function getSavedFileList(option?: Taro.getSavedFileList.Option): Promise<Taro.getSavedFileList.SuccessCallbackResult>;
304
- function getSavedFileInfo(option: Taro.getSavedFileInfo.Option): Promise<Taro.getSavedFileInfo.SuccessCallbackResult>;
305
- const ENV_TYPE: {
306
- WEAPP: string;
307
- SWAN: string;
308
- ALIPAY: string;
309
- TT: string;
310
- QQ: string;
311
- JD: string;
312
- WEB: string;
313
- RN: string;
314
- HARMONY: string;
315
- QUICKAPP: string;
1
+ import Taro$1 from '@tarojs/taro/types';
2
+ import { TaroAny, Current, Events, History, eventCenter, getCurrentInstance, nextTick } from '@tarojs/runtime';
3
+ export { Current, Events, History, eventCenter, getCurrentInstance, nextTick } from '@tarojs/runtime';
4
+
5
+ interface ICallbackResult {
6
+ /** 错误信息 */
7
+ errMsg: string;
8
+ }
9
+
10
+ declare const getUserCryptoManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
11
+
12
+ declare const setEnableDebug: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
13
+ declare const getRealtimeLogManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
14
+ declare const getLogManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
15
+
16
+ declare const reportPerformance: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
17
+ declare const getPerformance: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
18
+ declare const preloadWebview: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
19
+ declare const preloadSkylineView: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
20
+ declare const preloadAssets: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
21
+
22
+ /** 获取窗口信息 */
23
+ declare const getWindowInfo: typeof Taro$1.getWindowInfo;
24
+ /** 获取设备设置 */
25
+ declare const getSystemSetting: typeof Taro$1.getSystemSetting;
26
+ /** 获取设备设置 */
27
+ declare const getDeviceInfo: typeof Taro$1.getDeviceInfo;
28
+ /** 获取微信APP基础信息 */
29
+ declare const getAppBaseInfo: typeof Taro$1.getAppBaseInfo;
30
+ /** 获取微信APP授权设置 */
31
+ declare const getAppAuthorizeSetting: typeof Taro$1.getAppAuthorizeSetting;
32
+ declare const getSystemInfoSync: typeof Taro$1.getSystemInfoSync;
33
+ declare const getSystemInfo: typeof Taro$1.getSystemInfo;
34
+
35
+ declare const updateWeChatApp: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
36
+ declare const getUpdateManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
37
+
38
+ declare const onUnhandledRejection: typeof Taro$1.onUnhandledRejection;
39
+ declare const onThemeChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
40
+ declare const onPageNotFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
41
+ declare const onLazyLoadError: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
42
+ declare const onError: typeof Taro$1.onError;
43
+ declare const onAudioInterruptionEnd: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
44
+ declare const onAudioInterruptionBegin: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
45
+ declare const onAppShow: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
46
+ declare const onAppHide: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
47
+ declare const offUnhandledRejection: typeof Taro$1.offUnhandledRejection;
48
+ declare const offThemeChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
49
+ declare const offPageNotFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
50
+ declare const offLazyLoadError: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
51
+ declare const offError: typeof Taro$1.offError;
52
+ declare const offAudioInterruptionEnd: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
53
+ declare const offAudioInterruptionBegin: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
54
+ declare const offAppShow: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
55
+ declare const offAppHide: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
56
+
57
+ declare const getLaunchOptionsSync: typeof Taro$1.getLaunchOptionsSync;
58
+ declare const getEnterOptionsSync: typeof Taro$1.getEnterOptionsSync;
59
+
60
+ declare const canIUse: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
61
+ declare const arrayBufferToBase64: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
62
+ declare const base64ToArrayBuffer: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
63
+
64
+ /** 创建离屏 canvas 实例 */
65
+ declare const createOffscreenCanvas: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
66
+ /** 创建 canvas 的绘图上下文 CanvasContext 对象 */
67
+ declare const createCanvasContext: (canvasId: string) => any;
68
+ /** 把当前画布指定区域的内容导出生成指定大小的图片 */
69
+ declare const canvasToTempFilePath: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
70
+ /** 将像素数据绘制到画布 */
71
+ declare const canvasPutImageData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
72
+ /** 获取 canvas 区域隐含的像素数据 */
73
+ declare const canvasGetImageData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
74
+
75
+ declare const reportMonitor: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
76
+ declare const reportAnalytics: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
77
+ declare const reportEvent: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
78
+ declare const getExptInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
79
+
80
+ /**
81
+ * 停止监听加速度数据。
82
+ */
83
+ declare const stopAccelerometer: typeof Taro$1.stopAccelerometer;
84
+ /**
85
+ * 开始监听加速度数据。
86
+ */
87
+ declare const startAccelerometer: typeof Taro$1.startAccelerometer;
88
+ /**
89
+ * 监听加速度数据事件。频率根据 Taro.startAccelerometer() interval 参数。可使用 Taro.stopAccelerometer() 停止监听。
90
+ */
91
+ declare const onAccelerometerChange: typeof Taro$1.onAccelerometerChange;
92
+ /**
93
+ * 取消监听加速度数据事件,参数为空,则取消所有的事件监听
94
+ */
95
+ declare const offAccelerometerChange: typeof Taro$1.offAccelerometerChange;
96
+
97
+ declare const checkIsOpenAccessibility: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
98
+
99
+ declare const getBatteryInfoSync: typeof Taro$1.getBatteryInfoSync;
100
+ declare const getBatteryInfo: typeof Taro$1.getBatteryInfo;
101
+
102
+ declare const stopBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
103
+ declare const startBluetoothDevicesDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
104
+ declare const openBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
105
+ declare const onBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
106
+ declare const onBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
107
+ declare const offBluetoothDeviceFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
108
+ declare const offBluetoothAdapterStateChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
109
+ declare const makeBluetoothPair: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
110
+ declare const isBluetoothDevicePaired: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
111
+ declare const getConnectedBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
112
+ declare const getBluetoothDevices: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
113
+ declare const getBluetoothAdapterState: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
114
+ declare const closeBluetoothAdapter: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
115
+
116
+ declare const writeBLECharacteristicValue: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
117
+ declare const setBLEMTU: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
118
+ declare const readBLECharacteristicValue: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
119
+ declare const onBLEMTUChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
120
+ declare const onBLEConnectionStateChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
121
+ declare const onBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
122
+ declare const offBLEMTUChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
123
+ declare const offBLEConnectionStateChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
124
+ declare const offBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
125
+ declare const notifyBLECharacteristicValueChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
126
+ declare const getBLEMTU: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
127
+ declare const getBLEDeviceServices: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
128
+ declare const getBLEDeviceRSSI: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
129
+ declare const getBLEDeviceCharacteristics: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
130
+ declare const createBLEConnection: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
131
+ declare const closeBLEConnection: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
132
+
133
+ declare const onBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
134
+ declare const offBLEPeripheralConnectionStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
135
+ declare const createBLEPeripheralServer: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
136
+
137
+ declare const addPhoneRepeatCalendar: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
138
+ declare const addPhoneCalendar: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
139
+
140
+ /**
141
+ * 设置系统剪贴板的内容
142
+ */
143
+ declare const setClipboardData: typeof Taro$1.setClipboardData;
144
+ /**
145
+ * 获取系统剪贴板的内容
146
+ */
147
+ declare const getClipboardData: typeof Taro$1.getClipboardData;
148
+
149
+ /**
150
+ * 停止监听罗盘数据
151
+ */
152
+ declare const stopCompass: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
153
+ /**
154
+ * 开始监听罗盘数据
155
+ */
156
+ declare const startCompass: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
157
+ /**
158
+ * 监听罗盘数据变化事件。频率:5 次/秒,接口调用后会自动开始监听,可使用 wx.stopCompass 停止监听。
159
+ */
160
+ declare const onCompassChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
161
+ /**
162
+ * 取消监听罗盘数据变化事件,参数为空,则取消所有的事件监听。
163
+ */
164
+ declare const offCompassChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
165
+
166
+ declare const chooseContact: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
167
+ declare const addPhoneContact: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
168
+
169
+ declare const getRandomValues: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
170
+
171
+ /**
172
+ * 停止监听加速度数据。
173
+ */
174
+ declare const stopGyroscope: typeof Taro$1.stopGyroscope;
175
+ /**
176
+ * 开始监听加速度数据。
177
+ */
178
+ declare const startGyroscope: typeof Taro$1.startGyroscope;
179
+ /**
180
+ * 监听加速度数据事件。频率根据 Taro.startGyroscope() 的 interval 参数。可使用 Taro.stopGyroscope() 停止监听。
181
+ */
182
+ declare const onGyroscopeChange: typeof Taro$1.onGyroscopeChange;
183
+ /**
184
+ * 取消监听加速度数据事件,参数为空,则取消所有的事件监听
185
+ */
186
+ declare const offGyroscopeChange: typeof Taro$1.offGyroscopeChange;
187
+
188
+ declare const stopBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
189
+ declare const startBeaconDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
190
+ declare const onBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
191
+ declare const onBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
192
+ declare const offBeaconUpdate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
193
+ declare const offBeaconServiceChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
194
+ declare const getBeacons: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
195
+
196
+ declare const onKeyboardHeightChange: typeof Taro$1.onKeyboardHeightChange;
197
+ declare const offKeyboardHeightChange: typeof Taro$1.offKeyboardHeightChange;
198
+ declare const hideKeyboard: typeof Taro$1.hideKeyboard;
199
+ declare const getSelectedTextRange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
200
+
201
+ declare const onMemoryWarning: (listener: any) => void;
202
+ declare const offMemoryWarning: (listener: any) => void;
203
+
204
+ declare const stopDeviceMotionListening: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
205
+ declare const startDeviceMotionListening: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
206
+ declare const onDeviceMotionChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
207
+ declare const offDeviceMotionChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
208
+
209
+ declare const getNetworkType: typeof Taro$1.getNetworkType;
210
+ /**
211
+ * 在最近的八次网络请求中, 出现下列三个现象之一则判定弱网。
212
+ * - 出现三次以上连接超时
213
+ * - 出现三次 rtt 超过 400
214
+ * - 出现三次以上的丢包
215
+ * > 弱网事件通知规则是: 弱网状态变化时立即通知, 状态不变时 30s 内最多通知一次。
216
+ */
217
+ declare const onNetworkWeakChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
218
+ declare const onNetworkStatusChange: typeof Taro$1.onNetworkStatusChange;
219
+ declare const offNetworkWeakChange: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
220
+ declare const offNetworkStatusChange: typeof Taro$1.offNetworkStatusChange;
221
+ declare const getLocalIPAddress: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
222
+
223
+ declare const stopHCE: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
224
+ declare const startHCE: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
225
+ declare const sendHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
226
+ declare const onHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
227
+ declare const offHCEMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
228
+ declare const getNFCAdapter: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
229
+ declare const getHCEState: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
230
+
231
+ declare const makePhoneCall: typeof Taro$1.makePhoneCall;
232
+
233
+ declare const scanCode: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
234
+
235
+ declare const setVisualEffectOnCapture: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
236
+ declare const setScreenBrightness: typeof Taro$1.setScreenBrightness;
237
+ declare const setKeepScreenOn: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
238
+ declare const onUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
239
+ declare const offUserCaptureScreen: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
240
+ declare const getScreenBrightness: typeof Taro$1.getScreenBrightness;
241
+ declare const onScreenRecordingStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
242
+ declare const offScreenRecordingStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
243
+ declare const getScreenRecordingState: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
244
+
245
+ declare const sendSms: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
246
+
247
+ declare const vibrateLong: ({ success, fail, complete }?: Taro$1.vibrateLong.Option) => Promise<unknown>;
248
+ declare const vibrateShort: ({ success, fail, complete }?: Taro$1.vibrateLong.Option) => Promise<unknown>;
249
+
250
+ declare const stopWifi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
251
+ declare const startWifi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
252
+ declare const setWifiList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
253
+ declare const onWifiConnectedWithPartialInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
254
+ declare const onWifiConnected: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
255
+ declare const onGetWifiList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
256
+ declare const offWifiConnectedWithPartialInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
257
+ declare const offWifiConnected: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
258
+ declare const offGetWifiList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
259
+ declare const getWifiList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
260
+ declare const getConnectedWifi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
261
+ declare const connectWifi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
262
+
263
+ declare const getExtConfigSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
264
+ declare const getExtConfig: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
265
+
266
+ /**
267
+ * HarmonyOS 文档:
268
+ * https://developer.harmonyos.com/cn/docs/documentation/doc-references/js-apis-fileio-0000001168366687
269
+ *
270
+ * WX 文档:
271
+ * https://developers.weixin.qq.com/miniprogram/dev/api/file/FileSystemManager.html
272
+ *
273
+ * Taro.js 文档
274
+ * https://taro-docs.jd.com/taro/docs/apis/files/FileSystemManager
275
+ *
276
+ * HarmonyOS 不支持接口:
277
+ * readCompressedFile
278
+ * readCompressedFileSync
279
+ * readdirSync
280
+ * readZipEntry
281
+ *
282
+ * HarmonyOS 差异性接口:
283
+ * readFile:encoding 仅支持 utf-8
284
+ * readFileSync:encoding 仅支持 utf-8
285
+ * write:encoding 仅支持 utf-8
286
+ * writeSync:encoding 仅支持 utf-8
287
+ * rmdirSync:recursive 参数无效(即不支持递归删除)
288
+ * statSync:recursive 参数无效(即不支持递归获取目录下的每个文件的 Stats 信息)
289
+ * getSavedFileList:返回值 fileList 中的每一项不包含 createTime 属性
290
+ */
291
+
292
+ declare function getFileSystemManager(): Taro$1.FileSystemManager;
293
+
294
+ declare const saveFileToDisk: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
295
+ /**
296
+ * HarmonyOS 不支持 showMenu 选项,并且 type 目前仅支持 *,详情参见:
297
+ * https://developer.harmonyos.com/cn/docs/documentation/doc-references/js-apis-document-0000001168936589#section9616125953711
298
+ */
299
+ declare function openDocument(option: Taro$1.openDocument.Option): Promise<any>;
300
+ declare function saveFile(option: Taro$1.saveFile.Option): Promise<any>;
301
+ declare function removeSavedFile(option: Taro$1.removeSavedFile.Option): Promise<any>;
302
+ declare function getFileInfo(option: Taro$1.getFileInfo.Option): Promise<Taro$1.getFileInfo.SuccessCallbackResult | Taro$1.getFileInfo.FailCallbackResult>;
303
+ declare function getSavedFileList(option?: Taro$1.getSavedFileList.Option): Promise<Taro$1.getSavedFileList.SuccessCallbackResult>;
304
+ declare function getSavedFileInfo(option: Taro$1.getSavedFileInfo.Option): Promise<Taro$1.getSavedFileInfo.SuccessCallbackResult>;
305
+
306
+ declare const ENV_TYPE: {
307
+ WEAPP: string;
308
+ SWAN: string;
309
+ ALIPAY: string;
310
+ TT: string;
311
+ QQ: string;
312
+ JD: string;
313
+ WEB: string;
314
+ RN: string;
315
+ HARMONY: string;
316
+ QUICKAPP: string;
317
+ };
318
+ declare function getEnv(): string;
319
+ declare const getCurrentPages: () => never[];
320
+
321
+ declare const requirePlugin: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
322
+ /** 鸿蒙专属 */
323
+ declare function updatePageSync(): void;
324
+ declare function unstable_SetPageIsTextNeedLayout(isNeed: boolean): void;
325
+
326
+ declare const triggerTaskPoolMethods: ({ name, args, complete, fail, success, }?: {
327
+ name?: string;
328
+ args?: TaroAny[];
329
+ complete?: (res: TaroAny) => void;
330
+ fail?: (res: TaroAny) => void;
331
+ success?: (res: TaroAny) => void;
332
+ }) => Promise<unknown>;
333
+
334
+ declare const stopLocationUpdate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
335
+ declare const startLocationUpdateBackground: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
336
+ declare const startLocationUpdate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
337
+ declare const openLocation: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
338
+ declare const getLocation: typeof Taro$1.getLocation;
339
+ declare const onLocationChange: typeof Taro$1.onLocationChange;
340
+ declare const offLocationChange: typeof Taro$1.offLocationChange;
341
+ declare const onLocationChangeError: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
342
+ declare const offLocationChangeError: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
343
+ declare const choosePoi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
344
+ declare const chooseLocation: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
345
+ declare const getFuzzyLocation: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
346
+
347
+ declare const stopVoice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
348
+ declare const setInnerAudioOption: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
349
+ declare const playVoice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
350
+ declare const pauseVoice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
351
+ declare const getAvailableAudioSources: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
352
+ declare const createWebAudioContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
353
+ declare const createMediaAudioPlayer: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
354
+ /**
355
+ * 创建内部 audio 上下文 InnerAudioContext 对象。
356
+ */
357
+ declare const createInnerAudioContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
358
+ declare const createAudioContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
359
+ /** Harmony 专属,更新 audio 状态 */
360
+ declare const refreshAudioSession: () => void;
361
+
362
+ declare const stopBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
363
+ declare const seekBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
364
+ declare const playBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
365
+ declare const pauseBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
366
+ declare const onBackgroundAudioStop: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
367
+ declare const onBackgroundAudioPlay: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
368
+ declare const onBackgroundAudioPause: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
369
+ declare const getBackgroundAudioPlayerState: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
370
+ /**
371
+ * 获取全局唯一的背景音频管理器
372
+ */
373
+ declare const getBackgroundAudioManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
374
+
375
+ declare const createCameraContext: typeof Taro$1.createCameraContext;
376
+
377
+ declare const previewMedia: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
378
+ declare const chooseMedia: typeof Taro$1.chooseMedia;
379
+
380
+ declare const previewImage: typeof Taro$1.previewImage;
381
+ declare const getImageInfo: typeof Taro$1.getImageInfo;
382
+ declare const compressImage: typeof Taro$1.compressImage;
383
+ declare const chooseImage: typeof Taro$1.chooseImage;
384
+ declare const saveImageToPhotosAlbum: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
385
+
386
+ declare const createLivePusherContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
387
+ declare const createLivePlayerContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
388
+
389
+ declare const createMapContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
390
+
391
+ declare const createMediaRecorder: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
392
+
393
+ declare const stopRecord: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
394
+ declare const startRecord: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
395
+ declare const getRecorderManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
396
+
397
+ declare const createVideoContext: typeof Taro$1.createVideoContext;
398
+ declare const chooseVideo: typeof Taro$1.chooseVideo;
399
+ declare const compressVideo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
400
+ declare const getVideoInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
401
+ declare const openVideoEditor: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
402
+ declare const saveVideoToPhotosAlbum: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
403
+
404
+ declare const createVideoDecoder: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
405
+
406
+ declare const createMediaContainer: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
407
+
408
+ declare const updateVoIPChatMuteConfig: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
409
+ declare const subscribeVoIPVideoMembers: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
410
+ declare const setEnable1v1Chat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
411
+ declare const onVoIPVideoMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
412
+ declare const onVoIPChatStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
413
+ declare const onVoIPChatSpeakersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
414
+ declare const onVoIPChatMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
415
+ declare const onVoIPChatInterrupted: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
416
+ declare const offVoIPChatSpeakersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
417
+ declare const offVoIPVideoMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
418
+ declare const offVoIPChatStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
419
+ declare const offVoIPChatMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
420
+ declare const offVoIPChatInterrupted: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
421
+ declare const joinVoIPChat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
422
+ declare const join1v1Chat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
423
+ declare const exitVoIPChat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
424
+
425
+ declare const openEmbeddedMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
426
+ declare const navigateToMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
427
+ declare const navigateBackMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
428
+ declare const exitMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
429
+ declare const openBusinessView: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
430
+
431
+ declare const downloadFile: typeof Taro$1.uploadFile;
432
+
433
+ declare const stopLocalServiceDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
434
+ declare const startLocalServiceDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
435
+ declare const onLocalServiceResolveFail: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
436
+ declare const onLocalServiceLost: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
437
+ declare const onLocalServiceFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
438
+ declare const onLocalServiceDiscoveryStop: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
439
+ declare const offLocalServiceResolveFail: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
440
+ declare const offLocalServiceLost: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
441
+ declare const offLocalServiceFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
442
+ declare const offLocalServiceDiscoveryStop: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
443
+
444
+ type TRequest = typeof Taro$1.request;
445
+ declare const request: TRequest;
446
+
447
+ declare const createTCPSocket: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
448
+
449
+ declare const createUDPSocket: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
450
+
451
+ declare const uploadFile: typeof Taro$1.uploadFile;
452
+
453
+ declare const connectSocket: typeof Taro$1.connectSocket;
454
+
455
+ declare const getAccountInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
456
+
457
+ declare const chooseAddress: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
458
+
459
+ declare const authorizeForMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
460
+ declare const authorize: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
461
+
462
+ declare const openCard: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
463
+ declare const addCard: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
464
+
465
+ declare const reserveChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
466
+ declare const openChannelsUserProfile: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
467
+ declare const openChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
468
+ declare const openChannelsEvent: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
469
+ declare const openChannelsActivity: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
470
+ declare const getChannelsShareKey: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
471
+ declare const getChannelsLiveNoticeInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
472
+ declare const getChannelsLiveInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
473
+
474
+ declare const openCustomerServiceChat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
475
+
476
+ declare const requestDeviceVoIP: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
477
+ declare const getDeviceVoIPList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
478
+
479
+ declare const checkIsSupportFacialRecognition: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
480
+ declare const startFacialRecognitionVerify: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
481
+ declare const startFacialRecognitionVerifyAndUploadVideo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
482
+ declare const faceVerifyForPay: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
483
+
484
+ declare const addVideoToFavorites: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
485
+ declare const addFileToFavorites: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
486
+
487
+ declare const getGroupEnterInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
488
+
489
+ declare const chooseInvoiceTitle: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
490
+ declare const chooseInvoice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
491
+
492
+ declare const chooseLicensePlate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
493
+
494
+ declare const pluginLogin: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
495
+ declare const login: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
496
+ declare const checkSession: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
497
+
498
+ declare const checkIsAddedToMyMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
499
+
500
+ declare const requirePrivacyAuthorize: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
501
+ declare const openPrivacyContract: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
502
+ declare const onNeedPrivacyAuthorization: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
503
+ declare const getPrivacySetting: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
504
+
505
+ declare const showRedPackage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
506
+
507
+ declare const openSetting: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
508
+ declare const getSetting: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
509
+
510
+ declare const startSoterAuthentication: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
511
+ declare const checkIsSupportSoterAuthentication: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
512
+ declare const checkIsSoterEnrolledInDevice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
513
+
514
+ declare const requestSubscribeMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
515
+ declare const requestSubscribeDeviceMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
516
+
517
+ /**
518
+ * 用户相关API, Harmony ACE API 6
519
+ *
520
+ * 1. 华为账号场景介绍文档 @see https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/harmonyos-js-login-0000001151310900
521
+ * 2. 华为账号API参考 @see https://developer.huawei.com/consumer/cn/doc/development/HMSCore-References/harmonyos-js-overview-0000001063532145
522
+ */
523
+ /**
524
+ * 通过Scope数组获取已登录的对应帐号信息(依赖login行为)
525
+ * @param options
526
+ */
527
+ declare const getUserInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
528
+ /**
529
+ * 获取用户信息
530
+ */
531
+ declare const getUserProfile: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
532
+
533
+ declare const shareToWeRun: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
534
+ declare const getWeRunData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
535
+
536
+ declare const requestPayment: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
537
+ declare const requestPluginPayment: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
538
+ declare const requestOrderPayment: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
539
+
540
+ declare const navigateTo: typeof Taro$1.navigateTo;
541
+ declare const redirectTo: typeof Taro$1.redirectTo;
542
+ declare const navigateBack: typeof Taro$1.navigateBack;
543
+ declare const reLaunch: typeof Taro$1.reLaunch;
544
+ declare const switchTab: typeof Taro$1.switchTab;
545
+
546
+ /** 更新转发属性 */
547
+ declare const updateShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
548
+ /** 显示当前页面的转发按钮 */
549
+ declare const showShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
550
+ /** 打开分享图片弹窗,可以将图片发送给朋友、收藏或下载 */
551
+ declare const showShareImageMenu: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
552
+ /** 转发视频到聊天 */
553
+ declare const shareVideoMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
554
+ /** 转发文件到聊天 */
555
+ declare const shareFileMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
556
+ /** 监听用户点击右上角菜单的「复制链接」按钮时触发的事件 */
557
+ declare const onCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
558
+ /** 移除用户点击右上角菜单的「复制链接」按钮时触发的事件的监听函数 */
559
+ declare const offCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
560
+ /** 隐藏当前页面的转发按钮 */
561
+ declare const hideShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
562
+ /** 获取转发详细信息 */
563
+ declare const getShareInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
564
+ /** 验证私密消息。 */
565
+ declare const authPrivateMessage: (option?: {}, ...args: any[]) => Promise<ICallbackResult & Record<string, unknown>>;
566
+
567
+ declare const setBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
568
+ declare const onBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
569
+ declare const getBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
570
+ declare const getBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
571
+
572
+ declare const createCacheManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
573
+
574
+ declare function getStorage<T = any>(options: Taro$1.getStorage.Option<T>): Promise<unknown> | undefined;
575
+ declare function setStorage(options: Taro$1.setStorage.Option): Promise<unknown> | undefined;
576
+ declare function removeStorage(options: Taro$1.removeStorage.Option): Promise<unknown> | undefined;
577
+ declare const getStorageInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
578
+ declare const getStorageInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
579
+ declare const createBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
580
+ declare const revokeBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
581
+ declare const batchSetStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
582
+ declare const batchSetStorage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
583
+ declare const batchGetStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
584
+ declare const batchGetStorage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
585
+ declare const clearStorage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
586
+ declare const getStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
587
+ declare const setStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
588
+ declare const clearStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
589
+ declare const removeStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
590
+
591
+ interface IAnimationAttr {
592
+ duration: number;
593
+ delay: number;
594
+ timingFunction: string;
595
+ transformOrigin: string;
596
+ }
597
+ type TStep = {
598
+ delay: number;
599
+ duration: number;
600
+ timingFunction: string;
601
+ transformOrigin: string;
602
+ rule: TRule;
603
+ };
604
+ type TRule = Record<string, any>;
605
+ declare class Animation implements Taro$1.Animation {
606
+ unit: string;
607
+ DEFAULT: IAnimationAttr;
608
+ steps: TStep[];
609
+ rule: TRule;
610
+ constructor({ duration, delay, timingFunction, transformOrigin, unit }?: Taro$1.createAnimation.Option);
611
+ setDefault(duration: any, delay: any, timingFunction: any, transformOrigin: any): void;
612
+ export(): {
613
+ actions: any[];
316
614
  };
317
- function getEnv(): string;
318
- // TODO
319
- const getCurrentPages: () => never[];
320
- const requirePlugin: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
321
- /** 鸿蒙专属 */
322
- function updatePageSync(): void;
323
- function unstable_SetPageIsTextNeedLayout(isNeed: boolean): void;
324
- // TaskPool 专属方法
325
- const triggerTaskPoolMethods: ({ name, args, complete, fail, success }?: {
326
- name?: string;
327
- args?: TaroAny[];
328
- complete?: (res: TaroAny) => void;
329
- fail?: (res: TaroAny) => void;
330
- success?: (res: TaroAny) => void;
331
- }) => Promise<unknown>;
332
- // 位置
333
- const stopLocationUpdate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
334
- const startLocationUpdateBackground: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
335
- const startLocationUpdate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
336
- const openLocation: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
337
- // TODO:增加参数校验
338
- // const getLocationSchema = {
339
- // type: 'String',
340
- // altitude: 'Boolean',
341
- // ishighAccuracy: 'Boolean',
342
- // highAccuracyExpireTime: 'number'
343
- // }
344
- const getLocation: typeof Taro.getLocation;
345
- const onLocationChange: typeof Taro.onLocationChange;
346
- const offLocationChange: typeof Taro.offLocationChange;
347
- const onLocationChangeError: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
348
- const offLocationChangeError: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
349
- const choosePoi: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
350
- const chooseLocation: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
351
- const getFuzzyLocation: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
352
- // 音频
353
- const stopVoice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
354
- const setInnerAudioOption: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
355
- const playVoice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
356
- const pauseVoice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
357
- const getAvailableAudioSources: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
358
- const createWebAudioContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
359
- const createMediaAudioPlayer: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
360
- /**
361
- * 创建内部 audio 上下文 InnerAudioContext 对象。
362
- */
363
- const createInnerAudioContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
364
- const createAudioContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
365
- /** Harmony 专属,更新 audio 状态 */
366
- const refreshAudioSession: () => void;
367
- // 背景音频
368
- const stopBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
369
- const seekBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
370
- const playBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
371
- const pauseBackgroundAudio: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
372
- const onBackgroundAudioStop: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
373
- const onBackgroundAudioPlay: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
374
- const onBackgroundAudioPause: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
375
- const getBackgroundAudioPlayerState: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
376
- /**
377
- * 获取全局唯一的背景音频管理器
378
- */
379
- const getBackgroundAudioManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
380
- const createCameraContext: typeof Taro.createCameraContext;
381
- // TODO: 扩展支持预览video
382
- const previewMedia: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
383
- const chooseMedia: typeof Taro.chooseMedia;
384
- const previewImage: typeof Taro.previewImage;
385
- const getImageInfo: typeof Taro.getImageInfo;
386
- const compressImage: typeof Taro.compressImage;
387
- const chooseImage: typeof Taro.chooseImage;
388
- const saveImageToPhotosAlbum: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
389
- // 实时音视频
390
- const createLivePusherContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
391
- const createLivePlayerContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
392
- // 地图
393
- const createMapContext: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
394
- // 画面录制器
395
- const createMediaRecorder: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
396
- // 录音
397
- const stopRecord: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
398
- const startRecord: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
399
- const getRecorderManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
400
- const createVideoContext: typeof Taro.createVideoContext;
401
- // TODO: 1.返回属性补全
402
- // TODO: 2.只支持从相册选择,补充摄像头拍摄功能,需要HarmonyOS提供选择组件
403
- const chooseVideo: typeof Taro.chooseVideo;
404
- const compressVideo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
405
- const getVideoInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
406
- const openVideoEditor: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
407
- const saveVideoToPhotosAlbum: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
408
- // 视频解码器
409
- const createVideoDecoder: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
410
- // 音视频合成
411
- const createMediaContainer: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
412
- // 实时语音
413
- const updateVoIPChatMuteConfig: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
414
- const subscribeVoIPVideoMembers: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
415
- const setEnable1v1Chat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
416
- const onVoIPVideoMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
417
- const onVoIPChatStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
418
- const onVoIPChatSpeakersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
419
- const onVoIPChatMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
420
- const onVoIPChatInterrupted: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
421
- const offVoIPChatSpeakersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
422
- const offVoIPVideoMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
423
- const offVoIPChatStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
424
- const offVoIPChatMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
425
- const offVoIPChatInterrupted: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
426
- const joinVoIPChat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
427
- const join1v1Chat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
428
- const exitVoIPChat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
429
- // 跳转
430
- const openEmbeddedMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
431
- const navigateToMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
432
- const navigateBackMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
433
- const exitMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
434
- const openBusinessView: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
435
- const downloadFile: typeof Taro.uploadFile;
436
- // mDNS
437
- const stopLocalServiceDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
438
- const startLocalServiceDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
439
- const onLocalServiceResolveFail: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
440
- const onLocalServiceLost: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
441
- const onLocalServiceFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
442
- const onLocalServiceDiscoveryStop: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
443
- const offLocalServiceResolveFail: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
444
- const offLocalServiceLost: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
445
- const offLocalServiceFound: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
446
- const offLocalServiceDiscoveryStop: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
447
- type TRequest = typeof Taro.request;
448
- const request: TRequest;
449
- // TCP 通信
450
- const createTCPSocket: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
451
- // UDP 通信
452
- const createUDPSocket: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
453
- const uploadFile: typeof Taro.uploadFile;
454
- const connectSocket: typeof Taro.connectSocket;
455
- // 帐号信息
456
- const getAccountInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
457
- // 收货地址
458
- const chooseAddress: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
459
- // 授权
460
- const authorizeForMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
461
- const authorize: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
462
- // 卡券
463
- const openCard: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
464
- const addCard: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
465
- // 视频号
466
- const reserveChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
467
- const openChannelsUserProfile: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
468
- const openChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
469
- const openChannelsEvent: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
470
- const openChannelsActivity: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
471
- const getChannelsShareKey: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
472
- const getChannelsLiveNoticeInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
473
- const getChannelsLiveInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
474
- // 微信客服
475
- const openCustomerServiceChat: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
476
- // 设备(组)音视频通话
477
- const requestDeviceVoIP: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
478
- const getDeviceVoIPList: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
479
- // 过往接口
480
- const checkIsSupportFacialRecognition: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
481
- const startFacialRecognitionVerify: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
482
- const startFacialRecognitionVerifyAndUploadVideo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
483
- const faceVerifyForPay: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
484
- // 收藏
485
- const addVideoToFavorites: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
486
- const addFileToFavorites: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
487
- // 微信群
488
- const getGroupEnterInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
489
- // 发票
490
- const chooseInvoiceTitle: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
491
- const chooseInvoice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
492
- // 车牌
493
- const chooseLicensePlate: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
494
- // 帐号信息
495
- const pluginLogin: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
496
- const login: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
497
- const checkSession: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
498
- // 我的小程序
499
- const checkIsAddedToMyMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
500
- // 隐私信息授权
501
- const requirePrivacyAuthorize: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
502
- const openPrivacyContract: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
503
- const onNeedPrivacyAuthorization: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
504
- const getPrivacySetting: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
505
- // 微信红包
506
- const showRedPackage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
507
- // 设置
508
- const openSetting: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
509
- const getSetting: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
510
- // 生物认证
511
- const startSoterAuthentication: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
512
- const checkIsSupportSoterAuthentication: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
513
- const checkIsSoterEnrolledInDevice: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
514
- // 订阅消息
515
- const requestSubscribeMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
516
- // 订阅设备消息
517
- const requestSubscribeDeviceMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
518
- /**
519
- * 通过Scope数组获取已登录的对应帐号信息(依赖login行为)
520
- * @param options
521
- */
522
- const getUserInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
523
- // export function getUserInfo (options) {
524
- // const { success, fail, complete } = options
525
- // const res: Record<string, any> = {}
526
- // // const result = hmsJSAccount.HuaweiIdAuthManager.getAuthResultWithScopes([hmsJSAccount.PROFILE])
527
- // const result = null
528
- // if (result) {
529
- // res.data = { userInfo: generateUserInfo(result) }
530
- // isFunction(success) && success(res)
531
- // } else {
532
- // res.errorMsg = 'getUserInfo result data is null'
533
- // isFunction(fail) && fail(res)
534
- // }
535
- // isFunction(complete) && complete(res)
536
- // }
615
+ step(arg?: Partial<IAnimationAttr>): Taro$1.Animation;
616
+ matrix(a: number, b: number, c: number, d: number, tx: number, ty: number): Taro$1.Animation;
617
+ matrix3d(a1: number, b1: number, c1: number, d1: number, a2: number, b2: number, c2: number, d2: number, a3: number, b3: number, c3: number, d3: number, a4: number, b4: number, c4: number, d4: number): Taro$1.Animation;
618
+ rotate(angle: number): Taro$1.Animation;
619
+ rotate3d(x: number, y?: number | undefined, z?: number | undefined, angle?: number | undefined): Taro$1.Animation;
620
+ rotateX(angle: number): Taro$1.Animation;
621
+ rotateY(angle: number): Taro$1.Animation;
622
+ rotateZ(angle: number): Taro$1.Animation;
623
+ scale(sx: number, sy?: number | undefined): Taro$1.Animation;
624
+ scale3d(sx: number, sy: number, sz: number): Taro$1.Animation;
625
+ scaleX(scale: number): Taro$1.Animation;
626
+ scaleY(scale: number): Taro$1.Animation;
627
+ scaleZ(scale: number): Taro$1.Animation;
628
+ skew(ax: number, ay: number): Taro$1.Animation;
629
+ skewX(angle: number): Taro$1.Animation;
630
+ skewY(angle: number): Taro$1.Animation;
631
+ translate(tx?: number | undefined, ty?: number | undefined): Taro$1.Animation;
632
+ translate3d(tx?: number | undefined, ty?: number | undefined, tz?: number | undefined): Taro$1.Animation;
633
+ translateX(translation: number): Taro$1.Animation;
634
+ translateY(translation: number): Taro$1.Animation;
635
+ translateZ(translation: number): Taro$1.Animation;
636
+ opacity(value: number): Taro$1.Animation;
637
+ backgroundColor(value: string): Taro$1.Animation;
638
+ width(value: string | number): Taro$1.Animation;
639
+ height(value: string | number): Taro$1.Animation;
640
+ left(value: string | number): Taro$1.Animation;
641
+ right(value: string | number): Taro$1.Animation;
642
+ top(value: string | number): Taro$1.Animation;
643
+ bottom(value: string | number): Taro$1.Animation;
644
+ }
645
+
646
+ declare const createAnimation: (option: Taro$1.createAnimation.Option) => Animation;
647
+
648
+ declare const setBackgroundTextStyle: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
649
+ declare function setBackgroundColor(options: Taro.setBackgroundColor.Option): Promise<unknown>;
650
+
651
+ declare const loadFontFace: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
652
+
653
+ declare function showToast(options: any): Promise<unknown>;
654
+ declare function showModal(options: any): Promise<unknown>;
655
+ declare function showActionSheet(options: any): Promise<unknown>;
656
+ declare const hideToast: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
657
+ declare const showLoading: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
658
+ declare const hideLoading: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
659
+ declare const enableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
660
+ declare const disableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
661
+
662
+ declare const getMenuButtonBoundingClientRect: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
663
+
664
+ declare const setNavigationBarTitle: typeof Taro$1.setNavigationBarTitle;
665
+ declare const setNavigationBarColor: typeof Taro$1.setNavigationBarColor;
666
+ declare const showNavigationBarLoading: typeof Taro$1.setNavigationBarColor;
667
+ declare const hideNavigationBarLoading: typeof Taro$1.hideNavigationBarLoading;
668
+ declare const hideHomeButton: typeof Taro$1.hideHomeButton;
669
+
670
+ declare const startPullDownRefresh: typeof Taro$1.startPullDownRefresh;
671
+ declare const stopPullDownRefresh: typeof Taro$1.stopPullDownRefresh;
672
+
673
+ declare const pageScrollTo: typeof Taro$1.pageScrollTo;
674
+
675
+ declare const setTopBarText: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
676
+
677
+ declare const showTabBar: (option?: Taro$1.showTabBar.Option | undefined) => Promise<TaroGeneral.CallbackResult>;
678
+ declare const hideTabBar: (option?: Taro$1.hideTabBar.Option | undefined) => Promise<TaroGeneral.CallbackResult>;
679
+ declare const setTabBarStyle: typeof Taro$1.setTabBarStyle;
680
+ declare const setTabBarItem: typeof Taro$1.setTabBarItem;
681
+ declare function showTabBarRedDot(options: any): Promise<unknown>;
682
+ declare function hideTabBarRedDot(options: any): Promise<unknown>;
683
+ declare function setTabBarBadge(options: any): Promise<unknown>;
684
+ declare function removeTabBarBadge(options: any): Promise<unknown>;
685
+
686
+ /**
687
+ * 设置窗口大小,该接口仅适用于 PC 平台,使用细则请参见指南
688
+ */
689
+ declare const setWindowSize: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
690
+ /**
691
+ * 监听窗口尺寸变化事件
692
+ */
693
+ declare const onWindowResize: typeof Taro$1.onWindowResize;
694
+ /**
695
+ * 取消监听窗口尺寸变化事件
696
+ */
697
+ declare const offWindowResize: typeof Taro$1.offWindowResize;
698
+ declare const checkIsPictureInPictureActive: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
699
+
700
+ declare const createWorker: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
701
+
702
+ declare class IntersectionObserver {
703
+ private _component;
704
+ private _observerNodes;
705
+ private _timer;
706
+ _options: {
707
+ thresholds: number[];
708
+ initialRatio: number;
709
+ observeAll: boolean;
710
+ };
711
+ _viewportMargins: {
712
+ left: number;
713
+ top: number;
714
+ right: number;
715
+ bottom: number;
716
+ };
717
+ constructor(component: any, options?: {});
718
+ disconnect(): void;
719
+ observe(targetSelector: any, callback: any): void;
720
+ relativeTo(): this;
721
+ relativeToViewport(option: any): this;
722
+ }
723
+
724
+ declare class NodesRef implements Taro$1.NodesRef {
725
+ _component?: any;
726
+ _selector: string;
727
+ _selectorQuery: SelectorQuery;
728
+ _single: boolean;
729
+ constructor(selector: string, querySelectorQuery: SelectorQuery, single: boolean);
730
+ context(cb: any): SelectorQuery;
731
+ node(cb?: Taro$1.NodesRef.NodeCallback): SelectorQuery;
732
+ boundingClientRect(cb?: Taro$1.NodesRef.BoundingClientRectCallback): SelectorQuery;
733
+ scrollOffset(cb: any): SelectorQuery;
734
+ fields(fields: Taro$1.NodesRef.Fields & {
735
+ nodeCanvasType: Taro$1.NodesRef.Fields['node'];
736
+ }, cb?: Taro$1.NodesRef.FieldsCallback): SelectorQuery;
737
+ }
738
+
739
+ interface ISelectorQueryQueue {
740
+ component: any;
741
+ selector: string;
742
+ single: boolean;
743
+ fields: any;
744
+ }
745
+ type TSelectorQueryQueueCallback = (res: ISelectorQueryQueue) => void;
746
+ declare class SelectorQuery implements Taro$1.SelectorQuery {
747
+ _queue: ISelectorQueryQueue[];
748
+ _queueCb: (TSelectorQueryQueueCallback | null)[];
749
+ _component?: any;
750
+ constructor();
537
751
  /**
538
- * 获取用户信息
752
+ * 设置选择器的选取范围
753
+ * @param component 指定组件
754
+ * @return selectQuery 返回查询对象
539
755
  */
540
- const getUserProfile: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
541
- // 微信运动
542
- const shareToWeRun: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
543
- const getWeRunData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
544
- // 支付
545
- const requestPayment: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
546
- const requestPluginPayment: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
547
- const requestOrderPayment: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
548
- const navigateTo: typeof Taro.navigateTo;
549
- const redirectTo: typeof Taro.redirectTo;
550
- const navigateBack: typeof Taro.navigateBack;
551
- const reLaunch: typeof Taro.reLaunch;
552
- const switchTab: typeof Taro.switchTab;
553
- // 转发
554
- /** 更新转发属性 */
555
- const updateShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
556
- /** 显示当前页面的转发按钮 */
557
- const showShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
558
- /** 打开分享图片弹窗,可以将图片发送给朋友、收藏或下载 */
559
- const showShareImageMenu: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
560
- /** 转发视频到聊天 */
561
- const shareVideoMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
562
- /** 转发文件到聊天 */
563
- const shareFileMessage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
564
- /** 监听用户点击右上角菜单的「复制链接」按钮时触发的事件 */
565
- const onCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
566
- /** 移除用户点击右上角菜单的「复制链接」按钮时触发的事件的监听函数 */
567
- const offCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
568
- /** 隐藏当前页面的转发按钮 */
569
- const hideShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
570
- /** 获取转发详细信息 */
571
- const getShareInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
572
- /** 验证私密消息。 */
573
- const authPrivateMessage: (option?: {}, ...args: any[]) => Promise<ICallbackResult & Record<string, unknown>>;
574
- function getStorage<T = any>(options: Taro.getStorage.Option<T>): Promise<unknown> | undefined;
575
- function setStorage(options: Taro.setStorage.Option): Promise<unknown> | undefined;
576
- function removeStorage(options: Taro.removeStorage.Option): Promise<unknown> | undefined;
577
- const getStorageInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
578
- const getStorageInfo: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
579
- const createBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
580
- const revokeBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
581
- const batchSetStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
582
- const batchSetStorage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
583
- const batchGetStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
584
- const batchGetStorage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
585
- const clearStorage: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
586
- const getStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
587
- const setStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
588
- const clearStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
589
- const removeStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
590
- // 周期性更新
591
- const setBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
592
- const onBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
593
- const getBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
594
- const getBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
595
- // 周期性更新
596
- const createCacheManager: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
597
- interface IAnimationAttr {
598
- duration: number;
599
- delay: number;
600
- timingFunction: string;
601
- transformOrigin: string;
602
- }
603
- type TStep = {
604
- delay: number;
605
- duration: number;
606
- timingFunction: string;
607
- transformOrigin: string;
608
- rule: TRule;
609
- };
610
- type TRule = Record<string, any>;
611
- class Animation implements Taro.Animation {
612
- unit: string;
613
- DEFAULT: IAnimationAttr;
614
- // 组合动画
615
- steps: TStep[];
616
- // 属性组合
617
- rule: TRule;
618
- constructor({ duration, delay, timingFunction, transformOrigin, unit }?: Taro.createAnimation.Option);
619
- // 设置默认值
620
- setDefault(duration: any, delay: any, timingFunction: any, transformOrigin: any): void;
621
- export(): {
622
- actions: any[];
623
- };
624
- step(arg?: Partial<IAnimationAttr>): Taro.Animation;
625
- matrix(a: number, b: number, c: number, d: number, tx: number, ty: number): Taro.Animation;
626
- matrix3d(a1: number, b1: number, c1: number, d1: number, a2: number, b2: number, c2: number, d2: number, a3: number, b3: number, c3: number, d3: number, a4: number, b4: number, c4: number, d4: number): Taro.Animation;
627
- rotate(angle: number): Taro.Animation;
628
- rotate3d(x: number, y?: number | undefined, z?: number | undefined, angle?: number | undefined): Taro.Animation;
629
- rotateX(angle: number): Taro.Animation;
630
- rotateY(angle: number): Taro.Animation;
631
- rotateZ(angle: number): Taro.Animation;
632
- scale(sx: number, sy?: number | undefined): Taro.Animation;
633
- scale3d(sx: number, sy: number, sz: number): Taro.Animation;
634
- scaleX(scale: number): Taro.Animation;
635
- scaleY(scale: number): Taro.Animation;
636
- scaleZ(scale: number): Taro.Animation;
637
- skew(ax: number, ay: number): Taro.Animation;
638
- skewX(angle: number): Taro.Animation;
639
- skewY(angle: number): Taro.Animation;
640
- translate(tx?: number | undefined, ty?: number | undefined): Taro.Animation;
641
- translate3d(tx?: number | undefined, ty?: number | undefined, tz?: number | undefined): Taro.Animation;
642
- translateX(translation: number): Taro.Animation;
643
- translateY(translation: number): Taro.Animation;
644
- translateZ(translation: number): Taro.Animation;
645
- opacity(value: number): Taro.Animation;
646
- backgroundColor(value: string): Taro.Animation;
647
- width(value: string | number): Taro.Animation;
648
- height(value: string | number): Taro.Animation;
649
- left(value: string | number): Taro.Animation;
650
- right(value: string | number): Taro.Animation;
651
- top(value: string | number): Taro.Animation;
652
- bottom(value: string | number): Taro.Animation;
653
- }
654
- const createAnimation: (option: Taro.createAnimation.Option) => Animation;
655
- const setBackgroundTextStyle: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
656
- function setBackgroundColor(options: Taro.setBackgroundColor.Option): Promise<unknown>;
657
- // 字体
658
- const loadFontFace: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
659
- function showToast(options: any): Promise<unknown>;
660
- function showModal(options: any): Promise<unknown>;
661
- function showActionSheet(options: any): Promise<unknown>;
662
- const hideToast: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
663
- const showLoading: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
664
- const hideLoading: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
665
- const enableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
666
- const disableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
667
- // 菜单
668
- const getMenuButtonBoundingClientRect: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
669
- const setNavigationBarTitle: typeof Taro.setNavigationBarTitle;
670
- const setNavigationBarColor: typeof Taro.setNavigationBarColor;
671
- const showNavigationBarLoading: typeof Taro.setNavigationBarColor;
672
- const hideNavigationBarLoading: typeof Taro.hideNavigationBarLoading;
673
- const hideHomeButton: typeof Taro.hideHomeButton;
674
- const startPullDownRefresh: typeof Taro.startPullDownRefresh;
675
- const stopPullDownRefresh: typeof Taro.stopPullDownRefresh;
676
- const pageScrollTo: typeof Taro.pageScrollTo;
677
- // 置顶
678
- const setTopBarText: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
679
- const showTabBar: (option?: Taro.showTabBar.Option | undefined) => Promise<TaroGeneral.CallbackResult>;
680
- const hideTabBar: (option?: Taro.hideTabBar.Option | undefined) => Promise<TaroGeneral.CallbackResult>;
681
- const setTabBarStyle: typeof Taro.setTabBarStyle;
682
- const setTabBarItem: typeof Taro.setTabBarItem;
683
- function showTabBarRedDot(options: any): Promise<unknown>;
684
- function hideTabBarRedDot(options: any): Promise<unknown>;
685
- function setTabBarBadge(options: any): Promise<unknown>;
686
- function removeTabBarBadge(options: any): Promise<unknown>;
756
+ in: (component: any) => this;
687
757
  /**
688
- * 设置窗口大小,该接口仅适用于 PC 平台,使用细则请参见指南
758
+ * 在当前页面下选择第一个匹配选择器selector的节点
759
+ * @param selector
760
+ * @return nodesRef 返回一个NodesRef 对象实例,可以用于获取节点信息
689
761
  */
690
- const setWindowSize: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
762
+ select(selector: string): NodesRef;
691
763
  /**
692
- * 监听窗口尺寸变化事件
764
+ * 在当前页面下选择匹配选择器selector的所有节点
765
+ * @param selector
693
766
  */
694
- const onWindowResize: typeof Taro.onWindowResize;
767
+ selectAll(selector: string): NodesRef;
695
768
  /**
696
- * 取消监听窗口尺寸变化事件
769
+ * 选择显示区域。可用于获取显示区域的尺寸、滚动位置等信息
697
770
  */
698
- const offWindowResize: typeof Taro.offWindowResize;
699
- const checkIsPictureInPictureActive: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
700
- // Worker
701
- const createWorker: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
702
- class IntersectionObserver {
703
- // 自定义组件实例
704
- private _component;
705
- // 监听的nodes
706
- private _observerNodes;
707
- // 选项
708
- private _timer;
709
- _options: {
710
- thresholds: number[];
711
- initialRatio: number;
712
- observeAll: boolean;
713
- };
714
- _viewportMargins: {
715
- left: number;
716
- top: number;
717
- right: number;
718
- bottom: number;
719
- };
720
- constructor(component: any, options?: {});
721
- disconnect(): void;
722
- observe(targetSelector: any, callback: any): void;
723
- relativeTo(): this;
724
- relativeToViewport(option: any): this;
725
- }
726
- class NodesRef implements Taro.NodesRef {
727
- _component?: any;
728
- _selector: string;
729
- _selectorQuery: SelectorQuery;
730
- _single: boolean;
731
- constructor(selector: string, querySelectorQuery: SelectorQuery, single: boolean);
732
- context(cb: any): SelectorQuery;
733
- node(cb?: Taro.NodesRef.NodeCallback): SelectorQuery;
734
- boundingClientRect(cb?: Taro.NodesRef.BoundingClientRectCallback): SelectorQuery;
735
- scrollOffset(cb: any): SelectorQuery;
736
- fields(fields: Taro.NodesRef.Fields & {
737
- nodeCanvasType: Taro.NodesRef.Fields["node"];
738
- }, cb?: Taro.NodesRef.FieldsCallback): SelectorQuery;
739
- }
740
- interface ISelectorQueryQueue {
741
- component: any;
742
- selector: string;
743
- single: boolean;
744
- fields: any;
745
- }
746
- type TSelectorQueryQueueCallback = (res: ISelectorQueryQueue) => void;
747
- class SelectorQuery implements Taro.SelectorQuery {
748
- _queue: ISelectorQueryQueue[];
749
- _queueCb: (TSelectorQueryQueueCallback | null)[];
750
- _component?: any;
751
- constructor();
752
- /**
753
- * 设置选择器的选取范围
754
- * @param component 指定组件
755
- * @return selectQuery 返回查询对象
756
- */
757
- in: (component: any) => this;
758
- /**
759
- * 在当前页面下选择第一个匹配选择器selector的节点
760
- * @param selector
761
- * @return nodesRef 返回一个NodesRef 对象实例,可以用于获取节点信息
762
- */
763
- select(selector: string): NodesRef;
764
- /**
765
- * 在当前页面下选择匹配选择器selector的所有节点
766
- * @param selector
767
- */
768
- selectAll(selector: string): NodesRef;
769
- /**
770
- * 选择显示区域。可用于获取显示区域的尺寸、滚动位置等信息
771
- */
772
- selectViewport(): NodesRef;
773
- exec(cb?: (...args: any[]) => any): any;
774
- _push(selector: any, component: any, single: any, fields: any, callback?: Taro.NodesRef.FieldsCallback | null): void;
775
- }
776
- const createSelectorQuery: () => SelectorQuery;
777
- const createIntersectionObserver: typeof Taro.createIntersectionObserver;
778
- const createMediaQueryObserver: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
779
- export { eventCenter, Events, History, nextTick } from "@tarojs/runtime";
771
+ selectViewport(): NodesRef;
772
+ exec(cb?: (...args: any[]) => any): any;
773
+ _push(selector: any, component: any, single: any, fields: any, callback?: Taro$1.NodesRef.FieldsCallback | null): void;
780
774
  }
781
- declare const taro: typeof apis;
782
- declare function initNativeApi(taro: any): void;
783
- declare function getApp(): any;
775
+
776
+ declare const createSelectorQuery: () => SelectorQuery;
777
+ declare const createIntersectionObserver: typeof Taro$1.createIntersectionObserver;
778
+ declare const createMediaQueryObserver: (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
779
+
780
+ declare const apis_Current: typeof Current;
781
+ declare const apis_ENV_TYPE: typeof ENV_TYPE;
782
+ declare const apis_Events: typeof Events;
783
+ declare const apis_History: typeof History;
784
+ type apis_IntersectionObserver = IntersectionObserver;
785
+ declare const apis_IntersectionObserver: typeof IntersectionObserver;
786
+ declare const apis_addCard: typeof addCard;
787
+ declare const apis_addFileToFavorites: typeof addFileToFavorites;
788
+ declare const apis_addPhoneCalendar: typeof addPhoneCalendar;
789
+ declare const apis_addPhoneContact: typeof addPhoneContact;
790
+ declare const apis_addPhoneRepeatCalendar: typeof addPhoneRepeatCalendar;
791
+ declare const apis_addVideoToFavorites: typeof addVideoToFavorites;
792
+ declare const apis_arrayBufferToBase64: typeof arrayBufferToBase64;
793
+ declare const apis_authPrivateMessage: typeof authPrivateMessage;
794
+ declare const apis_authorize: typeof authorize;
795
+ declare const apis_authorizeForMiniProgram: typeof authorizeForMiniProgram;
796
+ declare const apis_base64ToArrayBuffer: typeof base64ToArrayBuffer;
797
+ declare const apis_batchGetStorage: typeof batchGetStorage;
798
+ declare const apis_batchGetStorageSync: typeof batchGetStorageSync;
799
+ declare const apis_batchSetStorage: typeof batchSetStorage;
800
+ declare const apis_batchSetStorageSync: typeof batchSetStorageSync;
801
+ declare const apis_canIUse: typeof canIUse;
802
+ declare const apis_canvasGetImageData: typeof canvasGetImageData;
803
+ declare const apis_canvasPutImageData: typeof canvasPutImageData;
804
+ declare const apis_canvasToTempFilePath: typeof canvasToTempFilePath;
805
+ declare const apis_checkIsAddedToMyMiniProgram: typeof checkIsAddedToMyMiniProgram;
806
+ declare const apis_checkIsOpenAccessibility: typeof checkIsOpenAccessibility;
807
+ declare const apis_checkIsPictureInPictureActive: typeof checkIsPictureInPictureActive;
808
+ declare const apis_checkIsSoterEnrolledInDevice: typeof checkIsSoterEnrolledInDevice;
809
+ declare const apis_checkIsSupportFacialRecognition: typeof checkIsSupportFacialRecognition;
810
+ declare const apis_checkIsSupportSoterAuthentication: typeof checkIsSupportSoterAuthentication;
811
+ declare const apis_checkSession: typeof checkSession;
812
+ declare const apis_chooseAddress: typeof chooseAddress;
813
+ declare const apis_chooseContact: typeof chooseContact;
814
+ declare const apis_chooseImage: typeof chooseImage;
815
+ declare const apis_chooseInvoice: typeof chooseInvoice;
816
+ declare const apis_chooseInvoiceTitle: typeof chooseInvoiceTitle;
817
+ declare const apis_chooseLicensePlate: typeof chooseLicensePlate;
818
+ declare const apis_chooseLocation: typeof chooseLocation;
819
+ declare const apis_chooseMedia: typeof chooseMedia;
820
+ declare const apis_choosePoi: typeof choosePoi;
821
+ declare const apis_chooseVideo: typeof chooseVideo;
822
+ declare const apis_clearStorage: typeof clearStorage;
823
+ declare const apis_clearStorageSync: typeof clearStorageSync;
824
+ declare const apis_closeBLEConnection: typeof closeBLEConnection;
825
+ declare const apis_closeBluetoothAdapter: typeof closeBluetoothAdapter;
826
+ declare const apis_compressImage: typeof compressImage;
827
+ declare const apis_compressVideo: typeof compressVideo;
828
+ declare const apis_connectSocket: typeof connectSocket;
829
+ declare const apis_connectWifi: typeof connectWifi;
830
+ declare const apis_createAnimation: typeof createAnimation;
831
+ declare const apis_createAudioContext: typeof createAudioContext;
832
+ declare const apis_createBLEConnection: typeof createBLEConnection;
833
+ declare const apis_createBLEPeripheralServer: typeof createBLEPeripheralServer;
834
+ declare const apis_createBufferURL: typeof createBufferURL;
835
+ declare const apis_createCacheManager: typeof createCacheManager;
836
+ declare const apis_createCameraContext: typeof createCameraContext;
837
+ declare const apis_createCanvasContext: typeof createCanvasContext;
838
+ declare const apis_createInnerAudioContext: typeof createInnerAudioContext;
839
+ declare const apis_createIntersectionObserver: typeof createIntersectionObserver;
840
+ declare const apis_createLivePlayerContext: typeof createLivePlayerContext;
841
+ declare const apis_createLivePusherContext: typeof createLivePusherContext;
842
+ declare const apis_createMapContext: typeof createMapContext;
843
+ declare const apis_createMediaAudioPlayer: typeof createMediaAudioPlayer;
844
+ declare const apis_createMediaContainer: typeof createMediaContainer;
845
+ declare const apis_createMediaQueryObserver: typeof createMediaQueryObserver;
846
+ declare const apis_createMediaRecorder: typeof createMediaRecorder;
847
+ declare const apis_createOffscreenCanvas: typeof createOffscreenCanvas;
848
+ declare const apis_createSelectorQuery: typeof createSelectorQuery;
849
+ declare const apis_createTCPSocket: typeof createTCPSocket;
850
+ declare const apis_createUDPSocket: typeof createUDPSocket;
851
+ declare const apis_createVideoContext: typeof createVideoContext;
852
+ declare const apis_createVideoDecoder: typeof createVideoDecoder;
853
+ declare const apis_createWebAudioContext: typeof createWebAudioContext;
854
+ declare const apis_createWorker: typeof createWorker;
855
+ declare const apis_disableAlertBeforeUnload: typeof disableAlertBeforeUnload;
856
+ declare const apis_downloadFile: typeof downloadFile;
857
+ declare const apis_enableAlertBeforeUnload: typeof enableAlertBeforeUnload;
858
+ declare const apis_eventCenter: typeof eventCenter;
859
+ declare const apis_exitMiniProgram: typeof exitMiniProgram;
860
+ declare const apis_exitVoIPChat: typeof exitVoIPChat;
861
+ declare const apis_faceVerifyForPay: typeof faceVerifyForPay;
862
+ declare const apis_getAccountInfoSync: typeof getAccountInfoSync;
863
+ declare const apis_getAppAuthorizeSetting: typeof getAppAuthorizeSetting;
864
+ declare const apis_getAppBaseInfo: typeof getAppBaseInfo;
865
+ declare const apis_getAvailableAudioSources: typeof getAvailableAudioSources;
866
+ declare const apis_getBLEDeviceCharacteristics: typeof getBLEDeviceCharacteristics;
867
+ declare const apis_getBLEDeviceRSSI: typeof getBLEDeviceRSSI;
868
+ declare const apis_getBLEDeviceServices: typeof getBLEDeviceServices;
869
+ declare const apis_getBLEMTU: typeof getBLEMTU;
870
+ declare const apis_getBackgroundAudioManager: typeof getBackgroundAudioManager;
871
+ declare const apis_getBackgroundAudioPlayerState: typeof getBackgroundAudioPlayerState;
872
+ declare const apis_getBackgroundFetchData: typeof getBackgroundFetchData;
873
+ declare const apis_getBackgroundFetchToken: typeof getBackgroundFetchToken;
874
+ declare const apis_getBatteryInfo: typeof getBatteryInfo;
875
+ declare const apis_getBatteryInfoSync: typeof getBatteryInfoSync;
876
+ declare const apis_getBeacons: typeof getBeacons;
877
+ declare const apis_getBluetoothAdapterState: typeof getBluetoothAdapterState;
878
+ declare const apis_getBluetoothDevices: typeof getBluetoothDevices;
879
+ declare const apis_getChannelsLiveInfo: typeof getChannelsLiveInfo;
880
+ declare const apis_getChannelsLiveNoticeInfo: typeof getChannelsLiveNoticeInfo;
881
+ declare const apis_getChannelsShareKey: typeof getChannelsShareKey;
882
+ declare const apis_getClipboardData: typeof getClipboardData;
883
+ declare const apis_getConnectedBluetoothDevices: typeof getConnectedBluetoothDevices;
884
+ declare const apis_getConnectedWifi: typeof getConnectedWifi;
885
+ declare const apis_getCurrentInstance: typeof getCurrentInstance;
886
+ declare const apis_getCurrentPages: typeof getCurrentPages;
887
+ declare const apis_getDeviceInfo: typeof getDeviceInfo;
888
+ declare const apis_getDeviceVoIPList: typeof getDeviceVoIPList;
889
+ declare const apis_getEnterOptionsSync: typeof getEnterOptionsSync;
890
+ declare const apis_getEnv: typeof getEnv;
891
+ declare const apis_getExptInfoSync: typeof getExptInfoSync;
892
+ declare const apis_getExtConfig: typeof getExtConfig;
893
+ declare const apis_getExtConfigSync: typeof getExtConfigSync;
894
+ declare const apis_getFileInfo: typeof getFileInfo;
895
+ declare const apis_getFileSystemManager: typeof getFileSystemManager;
896
+ declare const apis_getFuzzyLocation: typeof getFuzzyLocation;
897
+ declare const apis_getGroupEnterInfo: typeof getGroupEnterInfo;
898
+ declare const apis_getHCEState: typeof getHCEState;
899
+ declare const apis_getImageInfo: typeof getImageInfo;
900
+ declare const apis_getLaunchOptionsSync: typeof getLaunchOptionsSync;
901
+ declare const apis_getLocalIPAddress: typeof getLocalIPAddress;
902
+ declare const apis_getLocation: typeof getLocation;
903
+ declare const apis_getLogManager: typeof getLogManager;
904
+ declare const apis_getMenuButtonBoundingClientRect: typeof getMenuButtonBoundingClientRect;
905
+ declare const apis_getNFCAdapter: typeof getNFCAdapter;
906
+ declare const apis_getNetworkType: typeof getNetworkType;
907
+ declare const apis_getPerformance: typeof getPerformance;
908
+ declare const apis_getPrivacySetting: typeof getPrivacySetting;
909
+ declare const apis_getRandomValues: typeof getRandomValues;
910
+ declare const apis_getRealtimeLogManager: typeof getRealtimeLogManager;
911
+ declare const apis_getRecorderManager: typeof getRecorderManager;
912
+ declare const apis_getSavedFileInfo: typeof getSavedFileInfo;
913
+ declare const apis_getSavedFileList: typeof getSavedFileList;
914
+ declare const apis_getScreenBrightness: typeof getScreenBrightness;
915
+ declare const apis_getScreenRecordingState: typeof getScreenRecordingState;
916
+ declare const apis_getSelectedTextRange: typeof getSelectedTextRange;
917
+ declare const apis_getSetting: typeof getSetting;
918
+ declare const apis_getShareInfo: typeof getShareInfo;
919
+ declare const apis_getStorage: typeof getStorage;
920
+ declare const apis_getStorageInfo: typeof getStorageInfo;
921
+ declare const apis_getStorageInfoSync: typeof getStorageInfoSync;
922
+ declare const apis_getStorageSync: typeof getStorageSync;
923
+ declare const apis_getSystemInfo: typeof getSystemInfo;
924
+ declare const apis_getSystemInfoSync: typeof getSystemInfoSync;
925
+ declare const apis_getSystemSetting: typeof getSystemSetting;
926
+ declare const apis_getUpdateManager: typeof getUpdateManager;
927
+ declare const apis_getUserCryptoManager: typeof getUserCryptoManager;
928
+ declare const apis_getUserInfo: typeof getUserInfo;
929
+ declare const apis_getUserProfile: typeof getUserProfile;
930
+ declare const apis_getVideoInfo: typeof getVideoInfo;
931
+ declare const apis_getWeRunData: typeof getWeRunData;
932
+ declare const apis_getWifiList: typeof getWifiList;
933
+ declare const apis_getWindowInfo: typeof getWindowInfo;
934
+ declare const apis_hideHomeButton: typeof hideHomeButton;
935
+ declare const apis_hideKeyboard: typeof hideKeyboard;
936
+ declare const apis_hideLoading: typeof hideLoading;
937
+ declare const apis_hideNavigationBarLoading: typeof hideNavigationBarLoading;
938
+ declare const apis_hideShareMenu: typeof hideShareMenu;
939
+ declare const apis_hideTabBar: typeof hideTabBar;
940
+ declare const apis_hideTabBarRedDot: typeof hideTabBarRedDot;
941
+ declare const apis_hideToast: typeof hideToast;
942
+ declare const apis_isBluetoothDevicePaired: typeof isBluetoothDevicePaired;
943
+ declare const apis_join1v1Chat: typeof join1v1Chat;
944
+ declare const apis_joinVoIPChat: typeof joinVoIPChat;
945
+ declare const apis_loadFontFace: typeof loadFontFace;
946
+ declare const apis_login: typeof login;
947
+ declare const apis_makeBluetoothPair: typeof makeBluetoothPair;
948
+ declare const apis_makePhoneCall: typeof makePhoneCall;
949
+ declare const apis_navigateBack: typeof navigateBack;
950
+ declare const apis_navigateBackMiniProgram: typeof navigateBackMiniProgram;
951
+ declare const apis_navigateTo: typeof navigateTo;
952
+ declare const apis_navigateToMiniProgram: typeof navigateToMiniProgram;
953
+ declare const apis_nextTick: typeof nextTick;
954
+ declare const apis_notifyBLECharacteristicValueChange: typeof notifyBLECharacteristicValueChange;
955
+ declare const apis_offAccelerometerChange: typeof offAccelerometerChange;
956
+ declare const apis_offAppHide: typeof offAppHide;
957
+ declare const apis_offAppShow: typeof offAppShow;
958
+ declare const apis_offAudioInterruptionBegin: typeof offAudioInterruptionBegin;
959
+ declare const apis_offAudioInterruptionEnd: typeof offAudioInterruptionEnd;
960
+ declare const apis_offBLECharacteristicValueChange: typeof offBLECharacteristicValueChange;
961
+ declare const apis_offBLEConnectionStateChange: typeof offBLEConnectionStateChange;
962
+ declare const apis_offBLEMTUChange: typeof offBLEMTUChange;
963
+ declare const apis_offBLEPeripheralConnectionStateChanged: typeof offBLEPeripheralConnectionStateChanged;
964
+ declare const apis_offBeaconServiceChange: typeof offBeaconServiceChange;
965
+ declare const apis_offBeaconUpdate: typeof offBeaconUpdate;
966
+ declare const apis_offBluetoothAdapterStateChange: typeof offBluetoothAdapterStateChange;
967
+ declare const apis_offBluetoothDeviceFound: typeof offBluetoothDeviceFound;
968
+ declare const apis_offCompassChange: typeof offCompassChange;
969
+ declare const apis_offCopyUrl: typeof offCopyUrl;
970
+ declare const apis_offDeviceMotionChange: typeof offDeviceMotionChange;
971
+ declare const apis_offError: typeof offError;
972
+ declare const apis_offGetWifiList: typeof offGetWifiList;
973
+ declare const apis_offGyroscopeChange: typeof offGyroscopeChange;
974
+ declare const apis_offHCEMessage: typeof offHCEMessage;
975
+ declare const apis_offKeyboardHeightChange: typeof offKeyboardHeightChange;
976
+ declare const apis_offLazyLoadError: typeof offLazyLoadError;
977
+ declare const apis_offLocalServiceDiscoveryStop: typeof offLocalServiceDiscoveryStop;
978
+ declare const apis_offLocalServiceFound: typeof offLocalServiceFound;
979
+ declare const apis_offLocalServiceLost: typeof offLocalServiceLost;
980
+ declare const apis_offLocalServiceResolveFail: typeof offLocalServiceResolveFail;
981
+ declare const apis_offLocationChange: typeof offLocationChange;
982
+ declare const apis_offLocationChangeError: typeof offLocationChangeError;
983
+ declare const apis_offMemoryWarning: typeof offMemoryWarning;
984
+ declare const apis_offNetworkStatusChange: typeof offNetworkStatusChange;
985
+ declare const apis_offNetworkWeakChange: typeof offNetworkWeakChange;
986
+ declare const apis_offPageNotFound: typeof offPageNotFound;
987
+ declare const apis_offScreenRecordingStateChanged: typeof offScreenRecordingStateChanged;
988
+ declare const apis_offThemeChange: typeof offThemeChange;
989
+ declare const apis_offUnhandledRejection: typeof offUnhandledRejection;
990
+ declare const apis_offUserCaptureScreen: typeof offUserCaptureScreen;
991
+ declare const apis_offVoIPChatInterrupted: typeof offVoIPChatInterrupted;
992
+ declare const apis_offVoIPChatMembersChanged: typeof offVoIPChatMembersChanged;
993
+ declare const apis_offVoIPChatSpeakersChanged: typeof offVoIPChatSpeakersChanged;
994
+ declare const apis_offVoIPChatStateChanged: typeof offVoIPChatStateChanged;
995
+ declare const apis_offVoIPVideoMembersChanged: typeof offVoIPVideoMembersChanged;
996
+ declare const apis_offWifiConnected: typeof offWifiConnected;
997
+ declare const apis_offWifiConnectedWithPartialInfo: typeof offWifiConnectedWithPartialInfo;
998
+ declare const apis_offWindowResize: typeof offWindowResize;
999
+ declare const apis_onAccelerometerChange: typeof onAccelerometerChange;
1000
+ declare const apis_onAppHide: typeof onAppHide;
1001
+ declare const apis_onAppShow: typeof onAppShow;
1002
+ declare const apis_onAudioInterruptionBegin: typeof onAudioInterruptionBegin;
1003
+ declare const apis_onAudioInterruptionEnd: typeof onAudioInterruptionEnd;
1004
+ declare const apis_onBLECharacteristicValueChange: typeof onBLECharacteristicValueChange;
1005
+ declare const apis_onBLEConnectionStateChange: typeof onBLEConnectionStateChange;
1006
+ declare const apis_onBLEMTUChange: typeof onBLEMTUChange;
1007
+ declare const apis_onBLEPeripheralConnectionStateChanged: typeof onBLEPeripheralConnectionStateChanged;
1008
+ declare const apis_onBackgroundAudioPause: typeof onBackgroundAudioPause;
1009
+ declare const apis_onBackgroundAudioPlay: typeof onBackgroundAudioPlay;
1010
+ declare const apis_onBackgroundAudioStop: typeof onBackgroundAudioStop;
1011
+ declare const apis_onBackgroundFetchData: typeof onBackgroundFetchData;
1012
+ declare const apis_onBeaconServiceChange: typeof onBeaconServiceChange;
1013
+ declare const apis_onBeaconUpdate: typeof onBeaconUpdate;
1014
+ declare const apis_onBluetoothAdapterStateChange: typeof onBluetoothAdapterStateChange;
1015
+ declare const apis_onBluetoothDeviceFound: typeof onBluetoothDeviceFound;
1016
+ declare const apis_onCompassChange: typeof onCompassChange;
1017
+ declare const apis_onCopyUrl: typeof onCopyUrl;
1018
+ declare const apis_onDeviceMotionChange: typeof onDeviceMotionChange;
1019
+ declare const apis_onError: typeof onError;
1020
+ declare const apis_onGetWifiList: typeof onGetWifiList;
1021
+ declare const apis_onGyroscopeChange: typeof onGyroscopeChange;
1022
+ declare const apis_onHCEMessage: typeof onHCEMessage;
1023
+ declare const apis_onKeyboardHeightChange: typeof onKeyboardHeightChange;
1024
+ declare const apis_onLazyLoadError: typeof onLazyLoadError;
1025
+ declare const apis_onLocalServiceDiscoveryStop: typeof onLocalServiceDiscoveryStop;
1026
+ declare const apis_onLocalServiceFound: typeof onLocalServiceFound;
1027
+ declare const apis_onLocalServiceLost: typeof onLocalServiceLost;
1028
+ declare const apis_onLocalServiceResolveFail: typeof onLocalServiceResolveFail;
1029
+ declare const apis_onLocationChange: typeof onLocationChange;
1030
+ declare const apis_onLocationChangeError: typeof onLocationChangeError;
1031
+ declare const apis_onMemoryWarning: typeof onMemoryWarning;
1032
+ declare const apis_onNeedPrivacyAuthorization: typeof onNeedPrivacyAuthorization;
1033
+ declare const apis_onNetworkStatusChange: typeof onNetworkStatusChange;
1034
+ declare const apis_onNetworkWeakChange: typeof onNetworkWeakChange;
1035
+ declare const apis_onPageNotFound: typeof onPageNotFound;
1036
+ declare const apis_onScreenRecordingStateChanged: typeof onScreenRecordingStateChanged;
1037
+ declare const apis_onThemeChange: typeof onThemeChange;
1038
+ declare const apis_onUnhandledRejection: typeof onUnhandledRejection;
1039
+ declare const apis_onUserCaptureScreen: typeof onUserCaptureScreen;
1040
+ declare const apis_onVoIPChatInterrupted: typeof onVoIPChatInterrupted;
1041
+ declare const apis_onVoIPChatMembersChanged: typeof onVoIPChatMembersChanged;
1042
+ declare const apis_onVoIPChatSpeakersChanged: typeof onVoIPChatSpeakersChanged;
1043
+ declare const apis_onVoIPChatStateChanged: typeof onVoIPChatStateChanged;
1044
+ declare const apis_onVoIPVideoMembersChanged: typeof onVoIPVideoMembersChanged;
1045
+ declare const apis_onWifiConnected: typeof onWifiConnected;
1046
+ declare const apis_onWifiConnectedWithPartialInfo: typeof onWifiConnectedWithPartialInfo;
1047
+ declare const apis_onWindowResize: typeof onWindowResize;
1048
+ declare const apis_openBluetoothAdapter: typeof openBluetoothAdapter;
1049
+ declare const apis_openBusinessView: typeof openBusinessView;
1050
+ declare const apis_openCard: typeof openCard;
1051
+ declare const apis_openChannelsActivity: typeof openChannelsActivity;
1052
+ declare const apis_openChannelsEvent: typeof openChannelsEvent;
1053
+ declare const apis_openChannelsLive: typeof openChannelsLive;
1054
+ declare const apis_openChannelsUserProfile: typeof openChannelsUserProfile;
1055
+ declare const apis_openCustomerServiceChat: typeof openCustomerServiceChat;
1056
+ declare const apis_openDocument: typeof openDocument;
1057
+ declare const apis_openEmbeddedMiniProgram: typeof openEmbeddedMiniProgram;
1058
+ declare const apis_openLocation: typeof openLocation;
1059
+ declare const apis_openPrivacyContract: typeof openPrivacyContract;
1060
+ declare const apis_openSetting: typeof openSetting;
1061
+ declare const apis_openVideoEditor: typeof openVideoEditor;
1062
+ declare const apis_pageScrollTo: typeof pageScrollTo;
1063
+ declare const apis_pauseBackgroundAudio: typeof pauseBackgroundAudio;
1064
+ declare const apis_pauseVoice: typeof pauseVoice;
1065
+ declare const apis_playBackgroundAudio: typeof playBackgroundAudio;
1066
+ declare const apis_playVoice: typeof playVoice;
1067
+ declare const apis_pluginLogin: typeof pluginLogin;
1068
+ declare const apis_preloadAssets: typeof preloadAssets;
1069
+ declare const apis_preloadSkylineView: typeof preloadSkylineView;
1070
+ declare const apis_preloadWebview: typeof preloadWebview;
1071
+ declare const apis_previewImage: typeof previewImage;
1072
+ declare const apis_previewMedia: typeof previewMedia;
1073
+ declare const apis_reLaunch: typeof reLaunch;
1074
+ declare const apis_readBLECharacteristicValue: typeof readBLECharacteristicValue;
1075
+ declare const apis_redirectTo: typeof redirectTo;
1076
+ declare const apis_refreshAudioSession: typeof refreshAudioSession;
1077
+ declare const apis_removeSavedFile: typeof removeSavedFile;
1078
+ declare const apis_removeStorage: typeof removeStorage;
1079
+ declare const apis_removeStorageSync: typeof removeStorageSync;
1080
+ declare const apis_removeTabBarBadge: typeof removeTabBarBadge;
1081
+ declare const apis_reportAnalytics: typeof reportAnalytics;
1082
+ declare const apis_reportEvent: typeof reportEvent;
1083
+ declare const apis_reportMonitor: typeof reportMonitor;
1084
+ declare const apis_reportPerformance: typeof reportPerformance;
1085
+ declare const apis_request: typeof request;
1086
+ declare const apis_requestDeviceVoIP: typeof requestDeviceVoIP;
1087
+ declare const apis_requestOrderPayment: typeof requestOrderPayment;
1088
+ declare const apis_requestPayment: typeof requestPayment;
1089
+ declare const apis_requestPluginPayment: typeof requestPluginPayment;
1090
+ declare const apis_requestSubscribeDeviceMessage: typeof requestSubscribeDeviceMessage;
1091
+ declare const apis_requestSubscribeMessage: typeof requestSubscribeMessage;
1092
+ declare const apis_requirePlugin: typeof requirePlugin;
1093
+ declare const apis_requirePrivacyAuthorize: typeof requirePrivacyAuthorize;
1094
+ declare const apis_reserveChannelsLive: typeof reserveChannelsLive;
1095
+ declare const apis_revokeBufferURL: typeof revokeBufferURL;
1096
+ declare const apis_saveFile: typeof saveFile;
1097
+ declare const apis_saveFileToDisk: typeof saveFileToDisk;
1098
+ declare const apis_saveImageToPhotosAlbum: typeof saveImageToPhotosAlbum;
1099
+ declare const apis_saveVideoToPhotosAlbum: typeof saveVideoToPhotosAlbum;
1100
+ declare const apis_scanCode: typeof scanCode;
1101
+ declare const apis_seekBackgroundAudio: typeof seekBackgroundAudio;
1102
+ declare const apis_sendHCEMessage: typeof sendHCEMessage;
1103
+ declare const apis_sendSms: typeof sendSms;
1104
+ declare const apis_setBLEMTU: typeof setBLEMTU;
1105
+ declare const apis_setBackgroundColor: typeof setBackgroundColor;
1106
+ declare const apis_setBackgroundFetchToken: typeof setBackgroundFetchToken;
1107
+ declare const apis_setBackgroundTextStyle: typeof setBackgroundTextStyle;
1108
+ declare const apis_setClipboardData: typeof setClipboardData;
1109
+ declare const apis_setEnable1v1Chat: typeof setEnable1v1Chat;
1110
+ declare const apis_setEnableDebug: typeof setEnableDebug;
1111
+ declare const apis_setInnerAudioOption: typeof setInnerAudioOption;
1112
+ declare const apis_setKeepScreenOn: typeof setKeepScreenOn;
1113
+ declare const apis_setNavigationBarColor: typeof setNavigationBarColor;
1114
+ declare const apis_setNavigationBarTitle: typeof setNavigationBarTitle;
1115
+ declare const apis_setScreenBrightness: typeof setScreenBrightness;
1116
+ declare const apis_setStorage: typeof setStorage;
1117
+ declare const apis_setStorageSync: typeof setStorageSync;
1118
+ declare const apis_setTabBarBadge: typeof setTabBarBadge;
1119
+ declare const apis_setTabBarItem: typeof setTabBarItem;
1120
+ declare const apis_setTabBarStyle: typeof setTabBarStyle;
1121
+ declare const apis_setTopBarText: typeof setTopBarText;
1122
+ declare const apis_setVisualEffectOnCapture: typeof setVisualEffectOnCapture;
1123
+ declare const apis_setWifiList: typeof setWifiList;
1124
+ declare const apis_setWindowSize: typeof setWindowSize;
1125
+ declare const apis_shareFileMessage: typeof shareFileMessage;
1126
+ declare const apis_shareToWeRun: typeof shareToWeRun;
1127
+ declare const apis_shareVideoMessage: typeof shareVideoMessage;
1128
+ declare const apis_showActionSheet: typeof showActionSheet;
1129
+ declare const apis_showLoading: typeof showLoading;
1130
+ declare const apis_showModal: typeof showModal;
1131
+ declare const apis_showNavigationBarLoading: typeof showNavigationBarLoading;
1132
+ declare const apis_showRedPackage: typeof showRedPackage;
1133
+ declare const apis_showShareImageMenu: typeof showShareImageMenu;
1134
+ declare const apis_showShareMenu: typeof showShareMenu;
1135
+ declare const apis_showTabBar: typeof showTabBar;
1136
+ declare const apis_showTabBarRedDot: typeof showTabBarRedDot;
1137
+ declare const apis_showToast: typeof showToast;
1138
+ declare const apis_startAccelerometer: typeof startAccelerometer;
1139
+ declare const apis_startBeaconDiscovery: typeof startBeaconDiscovery;
1140
+ declare const apis_startBluetoothDevicesDiscovery: typeof startBluetoothDevicesDiscovery;
1141
+ declare const apis_startCompass: typeof startCompass;
1142
+ declare const apis_startDeviceMotionListening: typeof startDeviceMotionListening;
1143
+ declare const apis_startFacialRecognitionVerify: typeof startFacialRecognitionVerify;
1144
+ declare const apis_startFacialRecognitionVerifyAndUploadVideo: typeof startFacialRecognitionVerifyAndUploadVideo;
1145
+ declare const apis_startGyroscope: typeof startGyroscope;
1146
+ declare const apis_startHCE: typeof startHCE;
1147
+ declare const apis_startLocalServiceDiscovery: typeof startLocalServiceDiscovery;
1148
+ declare const apis_startLocationUpdate: typeof startLocationUpdate;
1149
+ declare const apis_startLocationUpdateBackground: typeof startLocationUpdateBackground;
1150
+ declare const apis_startPullDownRefresh: typeof startPullDownRefresh;
1151
+ declare const apis_startRecord: typeof startRecord;
1152
+ declare const apis_startSoterAuthentication: typeof startSoterAuthentication;
1153
+ declare const apis_startWifi: typeof startWifi;
1154
+ declare const apis_stopAccelerometer: typeof stopAccelerometer;
1155
+ declare const apis_stopBackgroundAudio: typeof stopBackgroundAudio;
1156
+ declare const apis_stopBeaconDiscovery: typeof stopBeaconDiscovery;
1157
+ declare const apis_stopBluetoothDevicesDiscovery: typeof stopBluetoothDevicesDiscovery;
1158
+ declare const apis_stopCompass: typeof stopCompass;
1159
+ declare const apis_stopDeviceMotionListening: typeof stopDeviceMotionListening;
1160
+ declare const apis_stopGyroscope: typeof stopGyroscope;
1161
+ declare const apis_stopHCE: typeof stopHCE;
1162
+ declare const apis_stopLocalServiceDiscovery: typeof stopLocalServiceDiscovery;
1163
+ declare const apis_stopLocationUpdate: typeof stopLocationUpdate;
1164
+ declare const apis_stopPullDownRefresh: typeof stopPullDownRefresh;
1165
+ declare const apis_stopRecord: typeof stopRecord;
1166
+ declare const apis_stopVoice: typeof stopVoice;
1167
+ declare const apis_stopWifi: typeof stopWifi;
1168
+ declare const apis_subscribeVoIPVideoMembers: typeof subscribeVoIPVideoMembers;
1169
+ declare const apis_switchTab: typeof switchTab;
1170
+ declare const apis_triggerTaskPoolMethods: typeof triggerTaskPoolMethods;
1171
+ declare const apis_unstable_SetPageIsTextNeedLayout: typeof unstable_SetPageIsTextNeedLayout;
1172
+ declare const apis_updatePageSync: typeof updatePageSync;
1173
+ declare const apis_updateShareMenu: typeof updateShareMenu;
1174
+ declare const apis_updateVoIPChatMuteConfig: typeof updateVoIPChatMuteConfig;
1175
+ declare const apis_updateWeChatApp: typeof updateWeChatApp;
1176
+ declare const apis_uploadFile: typeof uploadFile;
1177
+ declare const apis_vibrateLong: typeof vibrateLong;
1178
+ declare const apis_vibrateShort: typeof vibrateShort;
1179
+ declare const apis_writeBLECharacteristicValue: typeof writeBLECharacteristicValue;
1180
+ declare namespace apis {
1181
+ export {
1182
+ apis_Current as Current,
1183
+ apis_ENV_TYPE as ENV_TYPE,
1184
+ apis_Events as Events,
1185
+ apis_History as History,
1186
+ apis_IntersectionObserver as IntersectionObserver,
1187
+ apis_addCard as addCard,
1188
+ apis_addFileToFavorites as addFileToFavorites,
1189
+ apis_addPhoneCalendar as addPhoneCalendar,
1190
+ apis_addPhoneContact as addPhoneContact,
1191
+ apis_addPhoneRepeatCalendar as addPhoneRepeatCalendar,
1192
+ apis_addVideoToFavorites as addVideoToFavorites,
1193
+ apis_arrayBufferToBase64 as arrayBufferToBase64,
1194
+ apis_authPrivateMessage as authPrivateMessage,
1195
+ apis_authorize as authorize,
1196
+ apis_authorizeForMiniProgram as authorizeForMiniProgram,
1197
+ apis_base64ToArrayBuffer as base64ToArrayBuffer,
1198
+ apis_batchGetStorage as batchGetStorage,
1199
+ apis_batchGetStorageSync as batchGetStorageSync,
1200
+ apis_batchSetStorage as batchSetStorage,
1201
+ apis_batchSetStorageSync as batchSetStorageSync,
1202
+ apis_canIUse as canIUse,
1203
+ apis_canvasGetImageData as canvasGetImageData,
1204
+ apis_canvasPutImageData as canvasPutImageData,
1205
+ apis_canvasToTempFilePath as canvasToTempFilePath,
1206
+ apis_checkIsAddedToMyMiniProgram as checkIsAddedToMyMiniProgram,
1207
+ apis_checkIsOpenAccessibility as checkIsOpenAccessibility,
1208
+ apis_checkIsPictureInPictureActive as checkIsPictureInPictureActive,
1209
+ apis_checkIsSoterEnrolledInDevice as checkIsSoterEnrolledInDevice,
1210
+ apis_checkIsSupportFacialRecognition as checkIsSupportFacialRecognition,
1211
+ apis_checkIsSupportSoterAuthentication as checkIsSupportSoterAuthentication,
1212
+ apis_checkSession as checkSession,
1213
+ apis_chooseAddress as chooseAddress,
1214
+ apis_chooseContact as chooseContact,
1215
+ apis_chooseImage as chooseImage,
1216
+ apis_chooseInvoice as chooseInvoice,
1217
+ apis_chooseInvoiceTitle as chooseInvoiceTitle,
1218
+ apis_chooseLicensePlate as chooseLicensePlate,
1219
+ apis_chooseLocation as chooseLocation,
1220
+ apis_chooseMedia as chooseMedia,
1221
+ apis_choosePoi as choosePoi,
1222
+ apis_chooseVideo as chooseVideo,
1223
+ apis_clearStorage as clearStorage,
1224
+ apis_clearStorageSync as clearStorageSync,
1225
+ apis_closeBLEConnection as closeBLEConnection,
1226
+ apis_closeBluetoothAdapter as closeBluetoothAdapter,
1227
+ apis_compressImage as compressImage,
1228
+ apis_compressVideo as compressVideo,
1229
+ apis_connectSocket as connectSocket,
1230
+ apis_connectWifi as connectWifi,
1231
+ apis_createAnimation as createAnimation,
1232
+ apis_createAudioContext as createAudioContext,
1233
+ apis_createBLEConnection as createBLEConnection,
1234
+ apis_createBLEPeripheralServer as createBLEPeripheralServer,
1235
+ apis_createBufferURL as createBufferURL,
1236
+ apis_createCacheManager as createCacheManager,
1237
+ apis_createCameraContext as createCameraContext,
1238
+ apis_createCanvasContext as createCanvasContext,
1239
+ apis_createInnerAudioContext as createInnerAudioContext,
1240
+ apis_createIntersectionObserver as createIntersectionObserver,
1241
+ apis_createLivePlayerContext as createLivePlayerContext,
1242
+ apis_createLivePusherContext as createLivePusherContext,
1243
+ apis_createMapContext as createMapContext,
1244
+ apis_createMediaAudioPlayer as createMediaAudioPlayer,
1245
+ apis_createMediaContainer as createMediaContainer,
1246
+ apis_createMediaQueryObserver as createMediaQueryObserver,
1247
+ apis_createMediaRecorder as createMediaRecorder,
1248
+ apis_createOffscreenCanvas as createOffscreenCanvas,
1249
+ apis_createSelectorQuery as createSelectorQuery,
1250
+ apis_createTCPSocket as createTCPSocket,
1251
+ apis_createUDPSocket as createUDPSocket,
1252
+ apis_createVideoContext as createVideoContext,
1253
+ apis_createVideoDecoder as createVideoDecoder,
1254
+ apis_createWebAudioContext as createWebAudioContext,
1255
+ apis_createWorker as createWorker,
1256
+ apis_disableAlertBeforeUnload as disableAlertBeforeUnload,
1257
+ apis_downloadFile as downloadFile,
1258
+ apis_enableAlertBeforeUnload as enableAlertBeforeUnload,
1259
+ apis_eventCenter as eventCenter,
1260
+ apis_exitMiniProgram as exitMiniProgram,
1261
+ apis_exitVoIPChat as exitVoIPChat,
1262
+ apis_faceVerifyForPay as faceVerifyForPay,
1263
+ apis_getAccountInfoSync as getAccountInfoSync,
1264
+ apis_getAppAuthorizeSetting as getAppAuthorizeSetting,
1265
+ apis_getAppBaseInfo as getAppBaseInfo,
1266
+ apis_getAvailableAudioSources as getAvailableAudioSources,
1267
+ apis_getBLEDeviceCharacteristics as getBLEDeviceCharacteristics,
1268
+ apis_getBLEDeviceRSSI as getBLEDeviceRSSI,
1269
+ apis_getBLEDeviceServices as getBLEDeviceServices,
1270
+ apis_getBLEMTU as getBLEMTU,
1271
+ apis_getBackgroundAudioManager as getBackgroundAudioManager,
1272
+ apis_getBackgroundAudioPlayerState as getBackgroundAudioPlayerState,
1273
+ apis_getBackgroundFetchData as getBackgroundFetchData,
1274
+ apis_getBackgroundFetchToken as getBackgroundFetchToken,
1275
+ apis_getBatteryInfo as getBatteryInfo,
1276
+ apis_getBatteryInfoSync as getBatteryInfoSync,
1277
+ apis_getBeacons as getBeacons,
1278
+ apis_getBluetoothAdapterState as getBluetoothAdapterState,
1279
+ apis_getBluetoothDevices as getBluetoothDevices,
1280
+ apis_getChannelsLiveInfo as getChannelsLiveInfo,
1281
+ apis_getChannelsLiveNoticeInfo as getChannelsLiveNoticeInfo,
1282
+ apis_getChannelsShareKey as getChannelsShareKey,
1283
+ apis_getClipboardData as getClipboardData,
1284
+ apis_getConnectedBluetoothDevices as getConnectedBluetoothDevices,
1285
+ apis_getConnectedWifi as getConnectedWifi,
1286
+ apis_getCurrentInstance as getCurrentInstance,
1287
+ apis_getCurrentPages as getCurrentPages,
1288
+ apis_getDeviceInfo as getDeviceInfo,
1289
+ apis_getDeviceVoIPList as getDeviceVoIPList,
1290
+ apis_getEnterOptionsSync as getEnterOptionsSync,
1291
+ apis_getEnv as getEnv,
1292
+ apis_getExptInfoSync as getExptInfoSync,
1293
+ apis_getExtConfig as getExtConfig,
1294
+ apis_getExtConfigSync as getExtConfigSync,
1295
+ apis_getFileInfo as getFileInfo,
1296
+ apis_getFileSystemManager as getFileSystemManager,
1297
+ apis_getFuzzyLocation as getFuzzyLocation,
1298
+ apis_getGroupEnterInfo as getGroupEnterInfo,
1299
+ apis_getHCEState as getHCEState,
1300
+ apis_getImageInfo as getImageInfo,
1301
+ apis_getLaunchOptionsSync as getLaunchOptionsSync,
1302
+ apis_getLocalIPAddress as getLocalIPAddress,
1303
+ apis_getLocation as getLocation,
1304
+ apis_getLogManager as getLogManager,
1305
+ apis_getMenuButtonBoundingClientRect as getMenuButtonBoundingClientRect,
1306
+ apis_getNFCAdapter as getNFCAdapter,
1307
+ apis_getNetworkType as getNetworkType,
1308
+ apis_getPerformance as getPerformance,
1309
+ apis_getPrivacySetting as getPrivacySetting,
1310
+ apis_getRandomValues as getRandomValues,
1311
+ apis_getRealtimeLogManager as getRealtimeLogManager,
1312
+ apis_getRecorderManager as getRecorderManager,
1313
+ apis_getSavedFileInfo as getSavedFileInfo,
1314
+ apis_getSavedFileList as getSavedFileList,
1315
+ apis_getScreenBrightness as getScreenBrightness,
1316
+ apis_getScreenRecordingState as getScreenRecordingState,
1317
+ apis_getSelectedTextRange as getSelectedTextRange,
1318
+ apis_getSetting as getSetting,
1319
+ apis_getShareInfo as getShareInfo,
1320
+ apis_getStorage as getStorage,
1321
+ apis_getStorageInfo as getStorageInfo,
1322
+ apis_getStorageInfoSync as getStorageInfoSync,
1323
+ apis_getStorageSync as getStorageSync,
1324
+ apis_getSystemInfo as getSystemInfo,
1325
+ apis_getSystemInfoSync as getSystemInfoSync,
1326
+ apis_getSystemSetting as getSystemSetting,
1327
+ apis_getUpdateManager as getUpdateManager,
1328
+ apis_getUserCryptoManager as getUserCryptoManager,
1329
+ apis_getUserInfo as getUserInfo,
1330
+ apis_getUserProfile as getUserProfile,
1331
+ apis_getVideoInfo as getVideoInfo,
1332
+ apis_getWeRunData as getWeRunData,
1333
+ apis_getWifiList as getWifiList,
1334
+ apis_getWindowInfo as getWindowInfo,
1335
+ apis_hideHomeButton as hideHomeButton,
1336
+ apis_hideKeyboard as hideKeyboard,
1337
+ apis_hideLoading as hideLoading,
1338
+ apis_hideNavigationBarLoading as hideNavigationBarLoading,
1339
+ apis_hideShareMenu as hideShareMenu,
1340
+ apis_hideTabBar as hideTabBar,
1341
+ apis_hideTabBarRedDot as hideTabBarRedDot,
1342
+ apis_hideToast as hideToast,
1343
+ apis_isBluetoothDevicePaired as isBluetoothDevicePaired,
1344
+ apis_join1v1Chat as join1v1Chat,
1345
+ apis_joinVoIPChat as joinVoIPChat,
1346
+ apis_loadFontFace as loadFontFace,
1347
+ apis_login as login,
1348
+ apis_makeBluetoothPair as makeBluetoothPair,
1349
+ apis_makePhoneCall as makePhoneCall,
1350
+ apis_navigateBack as navigateBack,
1351
+ apis_navigateBackMiniProgram as navigateBackMiniProgram,
1352
+ apis_navigateTo as navigateTo,
1353
+ apis_navigateToMiniProgram as navigateToMiniProgram,
1354
+ apis_nextTick as nextTick,
1355
+ apis_notifyBLECharacteristicValueChange as notifyBLECharacteristicValueChange,
1356
+ apis_offAccelerometerChange as offAccelerometerChange,
1357
+ apis_offAppHide as offAppHide,
1358
+ apis_offAppShow as offAppShow,
1359
+ apis_offAudioInterruptionBegin as offAudioInterruptionBegin,
1360
+ apis_offAudioInterruptionEnd as offAudioInterruptionEnd,
1361
+ apis_offBLECharacteristicValueChange as offBLECharacteristicValueChange,
1362
+ apis_offBLEConnectionStateChange as offBLEConnectionStateChange,
1363
+ apis_offBLEMTUChange as offBLEMTUChange,
1364
+ apis_offBLEPeripheralConnectionStateChanged as offBLEPeripheralConnectionStateChanged,
1365
+ apis_offBeaconServiceChange as offBeaconServiceChange,
1366
+ apis_offBeaconUpdate as offBeaconUpdate,
1367
+ apis_offBluetoothAdapterStateChange as offBluetoothAdapterStateChange,
1368
+ apis_offBluetoothDeviceFound as offBluetoothDeviceFound,
1369
+ apis_offCompassChange as offCompassChange,
1370
+ apis_offCopyUrl as offCopyUrl,
1371
+ apis_offDeviceMotionChange as offDeviceMotionChange,
1372
+ apis_offError as offError,
1373
+ apis_offGetWifiList as offGetWifiList,
1374
+ apis_offGyroscopeChange as offGyroscopeChange,
1375
+ apis_offHCEMessage as offHCEMessage,
1376
+ apis_offKeyboardHeightChange as offKeyboardHeightChange,
1377
+ apis_offLazyLoadError as offLazyLoadError,
1378
+ apis_offLocalServiceDiscoveryStop as offLocalServiceDiscoveryStop,
1379
+ apis_offLocalServiceFound as offLocalServiceFound,
1380
+ apis_offLocalServiceLost as offLocalServiceLost,
1381
+ apis_offLocalServiceResolveFail as offLocalServiceResolveFail,
1382
+ apis_offLocationChange as offLocationChange,
1383
+ apis_offLocationChangeError as offLocationChangeError,
1384
+ apis_offMemoryWarning as offMemoryWarning,
1385
+ apis_offNetworkStatusChange as offNetworkStatusChange,
1386
+ apis_offNetworkWeakChange as offNetworkWeakChange,
1387
+ apis_offPageNotFound as offPageNotFound,
1388
+ apis_offScreenRecordingStateChanged as offScreenRecordingStateChanged,
1389
+ apis_offThemeChange as offThemeChange,
1390
+ apis_offUnhandledRejection as offUnhandledRejection,
1391
+ apis_offUserCaptureScreen as offUserCaptureScreen,
1392
+ apis_offVoIPChatInterrupted as offVoIPChatInterrupted,
1393
+ apis_offVoIPChatMembersChanged as offVoIPChatMembersChanged,
1394
+ apis_offVoIPChatSpeakersChanged as offVoIPChatSpeakersChanged,
1395
+ apis_offVoIPChatStateChanged as offVoIPChatStateChanged,
1396
+ apis_offVoIPVideoMembersChanged as offVoIPVideoMembersChanged,
1397
+ apis_offWifiConnected as offWifiConnected,
1398
+ apis_offWifiConnectedWithPartialInfo as offWifiConnectedWithPartialInfo,
1399
+ apis_offWindowResize as offWindowResize,
1400
+ apis_onAccelerometerChange as onAccelerometerChange,
1401
+ apis_onAppHide as onAppHide,
1402
+ apis_onAppShow as onAppShow,
1403
+ apis_onAudioInterruptionBegin as onAudioInterruptionBegin,
1404
+ apis_onAudioInterruptionEnd as onAudioInterruptionEnd,
1405
+ apis_onBLECharacteristicValueChange as onBLECharacteristicValueChange,
1406
+ apis_onBLEConnectionStateChange as onBLEConnectionStateChange,
1407
+ apis_onBLEMTUChange as onBLEMTUChange,
1408
+ apis_onBLEPeripheralConnectionStateChanged as onBLEPeripheralConnectionStateChanged,
1409
+ apis_onBackgroundAudioPause as onBackgroundAudioPause,
1410
+ apis_onBackgroundAudioPlay as onBackgroundAudioPlay,
1411
+ apis_onBackgroundAudioStop as onBackgroundAudioStop,
1412
+ apis_onBackgroundFetchData as onBackgroundFetchData,
1413
+ apis_onBeaconServiceChange as onBeaconServiceChange,
1414
+ apis_onBeaconUpdate as onBeaconUpdate,
1415
+ apis_onBluetoothAdapterStateChange as onBluetoothAdapterStateChange,
1416
+ apis_onBluetoothDeviceFound as onBluetoothDeviceFound,
1417
+ apis_onCompassChange as onCompassChange,
1418
+ apis_onCopyUrl as onCopyUrl,
1419
+ apis_onDeviceMotionChange as onDeviceMotionChange,
1420
+ apis_onError as onError,
1421
+ apis_onGetWifiList as onGetWifiList,
1422
+ apis_onGyroscopeChange as onGyroscopeChange,
1423
+ apis_onHCEMessage as onHCEMessage,
1424
+ apis_onKeyboardHeightChange as onKeyboardHeightChange,
1425
+ apis_onLazyLoadError as onLazyLoadError,
1426
+ apis_onLocalServiceDiscoveryStop as onLocalServiceDiscoveryStop,
1427
+ apis_onLocalServiceFound as onLocalServiceFound,
1428
+ apis_onLocalServiceLost as onLocalServiceLost,
1429
+ apis_onLocalServiceResolveFail as onLocalServiceResolveFail,
1430
+ apis_onLocationChange as onLocationChange,
1431
+ apis_onLocationChangeError as onLocationChangeError,
1432
+ apis_onMemoryWarning as onMemoryWarning,
1433
+ apis_onNeedPrivacyAuthorization as onNeedPrivacyAuthorization,
1434
+ apis_onNetworkStatusChange as onNetworkStatusChange,
1435
+ apis_onNetworkWeakChange as onNetworkWeakChange,
1436
+ apis_onPageNotFound as onPageNotFound,
1437
+ apis_onScreenRecordingStateChanged as onScreenRecordingStateChanged,
1438
+ apis_onThemeChange as onThemeChange,
1439
+ apis_onUnhandledRejection as onUnhandledRejection,
1440
+ apis_onUserCaptureScreen as onUserCaptureScreen,
1441
+ apis_onVoIPChatInterrupted as onVoIPChatInterrupted,
1442
+ apis_onVoIPChatMembersChanged as onVoIPChatMembersChanged,
1443
+ apis_onVoIPChatSpeakersChanged as onVoIPChatSpeakersChanged,
1444
+ apis_onVoIPChatStateChanged as onVoIPChatStateChanged,
1445
+ apis_onVoIPVideoMembersChanged as onVoIPVideoMembersChanged,
1446
+ apis_onWifiConnected as onWifiConnected,
1447
+ apis_onWifiConnectedWithPartialInfo as onWifiConnectedWithPartialInfo,
1448
+ apis_onWindowResize as onWindowResize,
1449
+ apis_openBluetoothAdapter as openBluetoothAdapter,
1450
+ apis_openBusinessView as openBusinessView,
1451
+ apis_openCard as openCard,
1452
+ apis_openChannelsActivity as openChannelsActivity,
1453
+ apis_openChannelsEvent as openChannelsEvent,
1454
+ apis_openChannelsLive as openChannelsLive,
1455
+ apis_openChannelsUserProfile as openChannelsUserProfile,
1456
+ apis_openCustomerServiceChat as openCustomerServiceChat,
1457
+ apis_openDocument as openDocument,
1458
+ apis_openEmbeddedMiniProgram as openEmbeddedMiniProgram,
1459
+ apis_openLocation as openLocation,
1460
+ apis_openPrivacyContract as openPrivacyContract,
1461
+ apis_openSetting as openSetting,
1462
+ apis_openVideoEditor as openVideoEditor,
1463
+ apis_pageScrollTo as pageScrollTo,
1464
+ apis_pauseBackgroundAudio as pauseBackgroundAudio,
1465
+ apis_pauseVoice as pauseVoice,
1466
+ apis_playBackgroundAudio as playBackgroundAudio,
1467
+ apis_playVoice as playVoice,
1468
+ apis_pluginLogin as pluginLogin,
1469
+ apis_preloadAssets as preloadAssets,
1470
+ apis_preloadSkylineView as preloadSkylineView,
1471
+ apis_preloadWebview as preloadWebview,
1472
+ apis_previewImage as previewImage,
1473
+ apis_previewMedia as previewMedia,
1474
+ apis_reLaunch as reLaunch,
1475
+ apis_readBLECharacteristicValue as readBLECharacteristicValue,
1476
+ apis_redirectTo as redirectTo,
1477
+ apis_refreshAudioSession as refreshAudioSession,
1478
+ apis_removeSavedFile as removeSavedFile,
1479
+ apis_removeStorage as removeStorage,
1480
+ apis_removeStorageSync as removeStorageSync,
1481
+ apis_removeTabBarBadge as removeTabBarBadge,
1482
+ apis_reportAnalytics as reportAnalytics,
1483
+ apis_reportEvent as reportEvent,
1484
+ apis_reportMonitor as reportMonitor,
1485
+ apis_reportPerformance as reportPerformance,
1486
+ apis_request as request,
1487
+ apis_requestDeviceVoIP as requestDeviceVoIP,
1488
+ apis_requestOrderPayment as requestOrderPayment,
1489
+ apis_requestPayment as requestPayment,
1490
+ apis_requestPluginPayment as requestPluginPayment,
1491
+ apis_requestSubscribeDeviceMessage as requestSubscribeDeviceMessage,
1492
+ apis_requestSubscribeMessage as requestSubscribeMessage,
1493
+ apis_requirePlugin as requirePlugin,
1494
+ apis_requirePrivacyAuthorize as requirePrivacyAuthorize,
1495
+ apis_reserveChannelsLive as reserveChannelsLive,
1496
+ apis_revokeBufferURL as revokeBufferURL,
1497
+ apis_saveFile as saveFile,
1498
+ apis_saveFileToDisk as saveFileToDisk,
1499
+ apis_saveImageToPhotosAlbum as saveImageToPhotosAlbum,
1500
+ apis_saveVideoToPhotosAlbum as saveVideoToPhotosAlbum,
1501
+ apis_scanCode as scanCode,
1502
+ apis_seekBackgroundAudio as seekBackgroundAudio,
1503
+ apis_sendHCEMessage as sendHCEMessage,
1504
+ apis_sendSms as sendSms,
1505
+ apis_setBLEMTU as setBLEMTU,
1506
+ apis_setBackgroundColor as setBackgroundColor,
1507
+ apis_setBackgroundFetchToken as setBackgroundFetchToken,
1508
+ apis_setBackgroundTextStyle as setBackgroundTextStyle,
1509
+ apis_setClipboardData as setClipboardData,
1510
+ apis_setEnable1v1Chat as setEnable1v1Chat,
1511
+ apis_setEnableDebug as setEnableDebug,
1512
+ apis_setInnerAudioOption as setInnerAudioOption,
1513
+ apis_setKeepScreenOn as setKeepScreenOn,
1514
+ apis_setNavigationBarColor as setNavigationBarColor,
1515
+ apis_setNavigationBarTitle as setNavigationBarTitle,
1516
+ apis_setScreenBrightness as setScreenBrightness,
1517
+ apis_setStorage as setStorage,
1518
+ apis_setStorageSync as setStorageSync,
1519
+ apis_setTabBarBadge as setTabBarBadge,
1520
+ apis_setTabBarItem as setTabBarItem,
1521
+ apis_setTabBarStyle as setTabBarStyle,
1522
+ apis_setTopBarText as setTopBarText,
1523
+ apis_setVisualEffectOnCapture as setVisualEffectOnCapture,
1524
+ apis_setWifiList as setWifiList,
1525
+ apis_setWindowSize as setWindowSize,
1526
+ apis_shareFileMessage as shareFileMessage,
1527
+ apis_shareToWeRun as shareToWeRun,
1528
+ apis_shareVideoMessage as shareVideoMessage,
1529
+ apis_showActionSheet as showActionSheet,
1530
+ apis_showLoading as showLoading,
1531
+ apis_showModal as showModal,
1532
+ apis_showNavigationBarLoading as showNavigationBarLoading,
1533
+ apis_showRedPackage as showRedPackage,
1534
+ apis_showShareImageMenu as showShareImageMenu,
1535
+ apis_showShareMenu as showShareMenu,
1536
+ apis_showTabBar as showTabBar,
1537
+ apis_showTabBarRedDot as showTabBarRedDot,
1538
+ apis_showToast as showToast,
1539
+ apis_startAccelerometer as startAccelerometer,
1540
+ apis_startBeaconDiscovery as startBeaconDiscovery,
1541
+ apis_startBluetoothDevicesDiscovery as startBluetoothDevicesDiscovery,
1542
+ apis_startCompass as startCompass,
1543
+ apis_startDeviceMotionListening as startDeviceMotionListening,
1544
+ apis_startFacialRecognitionVerify as startFacialRecognitionVerify,
1545
+ apis_startFacialRecognitionVerifyAndUploadVideo as startFacialRecognitionVerifyAndUploadVideo,
1546
+ apis_startGyroscope as startGyroscope,
1547
+ apis_startHCE as startHCE,
1548
+ apis_startLocalServiceDiscovery as startLocalServiceDiscovery,
1549
+ apis_startLocationUpdate as startLocationUpdate,
1550
+ apis_startLocationUpdateBackground as startLocationUpdateBackground,
1551
+ apis_startPullDownRefresh as startPullDownRefresh,
1552
+ apis_startRecord as startRecord,
1553
+ apis_startSoterAuthentication as startSoterAuthentication,
1554
+ apis_startWifi as startWifi,
1555
+ apis_stopAccelerometer as stopAccelerometer,
1556
+ apis_stopBackgroundAudio as stopBackgroundAudio,
1557
+ apis_stopBeaconDiscovery as stopBeaconDiscovery,
1558
+ apis_stopBluetoothDevicesDiscovery as stopBluetoothDevicesDiscovery,
1559
+ apis_stopCompass as stopCompass,
1560
+ apis_stopDeviceMotionListening as stopDeviceMotionListening,
1561
+ apis_stopGyroscope as stopGyroscope,
1562
+ apis_stopHCE as stopHCE,
1563
+ apis_stopLocalServiceDiscovery as stopLocalServiceDiscovery,
1564
+ apis_stopLocationUpdate as stopLocationUpdate,
1565
+ apis_stopPullDownRefresh as stopPullDownRefresh,
1566
+ apis_stopRecord as stopRecord,
1567
+ apis_stopVoice as stopVoice,
1568
+ apis_stopWifi as stopWifi,
1569
+ apis_subscribeVoIPVideoMembers as subscribeVoIPVideoMembers,
1570
+ apis_switchTab as switchTab,
1571
+ apis_triggerTaskPoolMethods as triggerTaskPoolMethods,
1572
+ apis_unstable_SetPageIsTextNeedLayout as unstable_SetPageIsTextNeedLayout,
1573
+ apis_updatePageSync as updatePageSync,
1574
+ apis_updateShareMenu as updateShareMenu,
1575
+ apis_updateVoIPChatMuteConfig as updateVoIPChatMuteConfig,
1576
+ apis_updateWeChatApp as updateWeChatApp,
1577
+ apis_uploadFile as uploadFile,
1578
+ apis_vibrateLong as vibrateLong,
1579
+ apis_vibrateShort as vibrateShort,
1580
+ apis_writeBLECharacteristicValue as writeBLECharacteristicValue,
1581
+ };
1582
+ }
1583
+
784
1584
  declare function initPxTransform({ designWidth, deviceRatio, baseFontSize, unitPrecision, targetUnit }: {
785
1585
  designWidth?: number | undefined;
786
1586
  deviceRatio?: Record<string | number, number> | undefined;
@@ -788,9 +1588,13 @@ declare function initPxTransform({ designWidth, deviceRatio, baseFontSize, unitP
788
1588
  unitPrecision?: number | undefined;
789
1589
  targetUnit?: string | undefined;
790
1590
  }): void;
791
- // Note: 设置为 style 单位时会自动完成设计稿转换,设计开发者调用 API 时也许抹平差异,例如 pageScrollTo[option.offsetTop]
792
1591
  declare function pxTransformHelper(size: number, unit?: string, isNumber?: boolean): number | string;
793
1592
  declare function pxTransform(size: number, designWidth?: number): number | string;
1593
+
1594
+ declare const taro: typeof apis;
1595
+ declare function initNativeApi(taro: any): void;
1596
+ declare function getApp(): any;
1597
+
794
1598
  declare function canIUseWebp(): boolean;
795
1599
  declare function getAppInfo(): {
796
1600
  platform: string;
@@ -798,5 +1602,5 @@ declare function getAppInfo(): {
798
1602
  designWidth: any;
799
1603
  };
800
1604
  declare function getUIContext(): any;
801
- export { taro as default, initNativeApi, getApp, initPxTransform, pxTransformHelper, pxTransform, canIUseWebp, getAppInfo, getUIContext, canIUse, arrayBufferToBase64, base64ToArrayBuffer, getUserCryptoManager, setEnableDebug, getRealtimeLogManager, getLogManager, reportPerformance, getPerformance, preloadWebview, preloadSkylineView, preloadAssets, getWindowInfo, getSystemSetting, getDeviceInfo, getAppBaseInfo, getAppAuthorizeSetting, getSystemInfoSync, getSystemInfo, updateWeChatApp, getUpdateManager, onUnhandledRejection, onThemeChange, onPageNotFound, onLazyLoadError, onError, onAudioInterruptionEnd, onAudioInterruptionBegin, onAppShow, onAppHide, offUnhandledRejection, offThemeChange, offPageNotFound, offLazyLoadError, offError, offAudioInterruptionEnd, offAudioInterruptionBegin, offAppShow, offAppHide, getLaunchOptionsSync, getEnterOptionsSync, createOffscreenCanvas, createCanvasContext, canvasToTempFilePath, canvasPutImageData, canvasGetImageData, 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, onScreenRecordingStateChanged, offScreenRecordingStateChanged, getScreenRecordingState, sendSms, vibrateLong, vibrateShort, stopWifi, startWifi, setWifiList, onWifiConnectedWithPartialInfo, onWifiConnected, onGetWifiList, offWifiConnectedWithPartialInfo, offWifiConnected, offGetWifiList, getWifiList, getConnectedWifi, connectWifi, getExtConfigSync, getExtConfig, saveFileToDisk, openDocument, saveFile, removeSavedFile, getFileInfo, getSavedFileList, getSavedFileInfo, getFileSystemManager, ENV_TYPE, getEnv, getCurrentPages, Current, getCurrentInstance, requirePlugin, updatePageSync, unstable_SetPageIsTextNeedLayout, triggerTaskPoolMethods, stopLocationUpdate, startLocationUpdateBackground, startLocationUpdate, openLocation, getLocation, onLocationChange, offLocationChange, onLocationChangeError, offLocationChangeError, choosePoi, chooseLocation, getFuzzyLocation, stopVoice, setInnerAudioOption, playVoice, pauseVoice, getAvailableAudioSources, createWebAudioContext, createMediaAudioPlayer, createInnerAudioContext, createAudioContext, refreshAudioSession, stopBackgroundAudio, seekBackgroundAudio, playBackgroundAudio, pauseBackgroundAudio, onBackgroundAudioStop, onBackgroundAudioPlay, onBackgroundAudioPause, getBackgroundAudioPlayerState, getBackgroundAudioManager, createCameraContext, previewMedia, chooseMedia, previewImage, getImageInfo, compressImage, chooseImage, saveImageToPhotosAlbum, createLivePusherContext, createLivePlayerContext, createMapContext, createMediaRecorder, stopRecord, startRecord, getRecorderManager, createVideoContext, chooseVideo, compressVideo, getVideoInfo, openVideoEditor, saveVideoToPhotosAlbum, createVideoDecoder, createMediaContainer, updateVoIPChatMuteConfig, subscribeVoIPVideoMembers, setEnable1v1Chat, onVoIPVideoMembersChanged, onVoIPChatStateChanged, onVoIPChatSpeakersChanged, onVoIPChatMembersChanged, onVoIPChatInterrupted, offVoIPChatSpeakersChanged, offVoIPVideoMembersChanged, offVoIPChatStateChanged, offVoIPChatMembersChanged, offVoIPChatInterrupted, joinVoIPChat, join1v1Chat, exitVoIPChat, openEmbeddedMiniProgram, navigateToMiniProgram, navigateBackMiniProgram, exitMiniProgram, openBusinessView, downloadFile, stopLocalServiceDiscovery, startLocalServiceDiscovery, onLocalServiceResolveFail, onLocalServiceLost, onLocalServiceFound, onLocalServiceDiscoveryStop, offLocalServiceResolveFail, offLocalServiceLost, offLocalServiceFound, offLocalServiceDiscoveryStop, request, createTCPSocket, createUDPSocket, uploadFile, connectSocket, getAccountInfoSync, chooseAddress, authorizeForMiniProgram, authorize, openCard, addCard, reserveChannelsLive, openChannelsUserProfile, openChannelsLive, openChannelsEvent, openChannelsActivity, getChannelsShareKey, getChannelsLiveNoticeInfo, getChannelsLiveInfo, openCustomerServiceChat, requestDeviceVoIP, getDeviceVoIPList, checkIsSupportFacialRecognition, startFacialRecognitionVerify, startFacialRecognitionVerifyAndUploadVideo, faceVerifyForPay, addVideoToFavorites, addFileToFavorites, getGroupEnterInfo, chooseInvoiceTitle, chooseInvoice, chooseLicensePlate, pluginLogin, login, checkSession, checkIsAddedToMyMiniProgram, requirePrivacyAuthorize, openPrivacyContract, onNeedPrivacyAuthorization, getPrivacySetting, showRedPackage, openSetting, getSetting, startSoterAuthentication, checkIsSupportSoterAuthentication, checkIsSoterEnrolledInDevice, requestSubscribeMessage, requestSubscribeDeviceMessage, getUserInfo, getUserProfile, shareToWeRun, getWeRunData, requestPayment, requestPluginPayment, requestOrderPayment, navigateTo, redirectTo, navigateBack, reLaunch, switchTab, updateShareMenu, showShareMenu, showShareImageMenu, shareVideoMessage, shareFileMessage, onCopyUrl, offCopyUrl, hideShareMenu, getShareInfo, authPrivateMessage, getStorage, setStorage, removeStorage, getStorageInfoSync, getStorageInfo, createBufferURL, revokeBufferURL, batchSetStorageSync, batchSetStorage, batchGetStorageSync, batchGetStorage, clearStorage, getStorageSync, setStorageSync, clearStorageSync, removeStorageSync, setBackgroundFetchToken, onBackgroundFetchData, getBackgroundFetchToken, getBackgroundFetchData, createCacheManager, createAnimation, setBackgroundTextStyle, setBackgroundColor, loadFontFace, showToast, showModal, showActionSheet, hideToast, showLoading, hideLoading, enableAlertBeforeUnload, disableAlertBeforeUnload, getMenuButtonBoundingClientRect, setNavigationBarTitle, setNavigationBarColor, showNavigationBarLoading, hideNavigationBarLoading, hideHomeButton, startPullDownRefresh, stopPullDownRefresh, pageScrollTo, setTopBarText, showTabBar, hideTabBar, setTabBarStyle, setTabBarItem, showTabBarRedDot, hideTabBarRedDot, setTabBarBadge, removeTabBarBadge, setWindowSize, onWindowResize, offWindowResize, checkIsPictureInPictureActive, createWorker, createSelectorQuery, createIntersectionObserver, createMediaQueryObserver, IntersectionObserver };
802
- export { eventCenter, Events, History, nextTick } from "@tarojs/runtime";
1605
+
1606
+ export { ENV_TYPE, IntersectionObserver, addCard, addFileToFavorites, addPhoneCalendar, addPhoneContact, addPhoneRepeatCalendar, addVideoToFavorites, arrayBufferToBase64, authPrivateMessage, authorize, authorizeForMiniProgram, base64ToArrayBuffer, batchGetStorage, batchGetStorageSync, batchSetStorage, batchSetStorageSync, canIUse, canIUseWebp, canvasGetImageData, canvasPutImageData, canvasToTempFilePath, checkIsAddedToMyMiniProgram, checkIsOpenAccessibility, checkIsPictureInPictureActive, checkIsSoterEnrolledInDevice, checkIsSupportFacialRecognition, checkIsSupportSoterAuthentication, checkSession, chooseAddress, chooseContact, chooseImage, chooseInvoice, chooseInvoiceTitle, chooseLicensePlate, chooseLocation, chooseMedia, choosePoi, chooseVideo, clearStorage, clearStorageSync, closeBLEConnection, closeBluetoothAdapter, compressImage, compressVideo, connectSocket, connectWifi, createAnimation, createAudioContext, createBLEConnection, createBLEPeripheralServer, createBufferURL, createCacheManager, createCameraContext, createCanvasContext, createInnerAudioContext, createIntersectionObserver, createLivePlayerContext, createLivePusherContext, createMapContext, createMediaAudioPlayer, createMediaContainer, createMediaQueryObserver, createMediaRecorder, createOffscreenCanvas, createSelectorQuery, createTCPSocket, createUDPSocket, createVideoContext, createVideoDecoder, createWebAudioContext, createWorker, taro as default, disableAlertBeforeUnload, downloadFile, enableAlertBeforeUnload, exitMiniProgram, exitVoIPChat, faceVerifyForPay, getAccountInfoSync, getApp, getAppAuthorizeSetting, getAppBaseInfo, getAppInfo, getAvailableAudioSources, getBLEDeviceCharacteristics, getBLEDeviceRSSI, getBLEDeviceServices, getBLEMTU, getBackgroundAudioManager, getBackgroundAudioPlayerState, getBackgroundFetchData, getBackgroundFetchToken, getBatteryInfo, getBatteryInfoSync, getBeacons, getBluetoothAdapterState, getBluetoothDevices, getChannelsLiveInfo, getChannelsLiveNoticeInfo, getChannelsShareKey, getClipboardData, getConnectedBluetoothDevices, getConnectedWifi, getCurrentPages, getDeviceInfo, getDeviceVoIPList, getEnterOptionsSync, getEnv, getExptInfoSync, getExtConfig, getExtConfigSync, getFileInfo, getFileSystemManager, getFuzzyLocation, getGroupEnterInfo, getHCEState, getImageInfo, getLaunchOptionsSync, getLocalIPAddress, getLocation, getLogManager, getMenuButtonBoundingClientRect, getNFCAdapter, getNetworkType, getPerformance, getPrivacySetting, getRandomValues, getRealtimeLogManager, getRecorderManager, getSavedFileInfo, getSavedFileList, getScreenBrightness, getScreenRecordingState, getSelectedTextRange, getSetting, getShareInfo, getStorage, getStorageInfo, getStorageInfoSync, getStorageSync, getSystemInfo, getSystemInfoSync, getSystemSetting, getUIContext, getUpdateManager, getUserCryptoManager, getUserInfo, getUserProfile, getVideoInfo, getWeRunData, getWifiList, getWindowInfo, hideHomeButton, hideKeyboard, hideLoading, hideNavigationBarLoading, hideShareMenu, hideTabBar, hideTabBarRedDot, hideToast, initNativeApi, initPxTransform, isBluetoothDevicePaired, join1v1Chat, joinVoIPChat, loadFontFace, login, makeBluetoothPair, makePhoneCall, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offAppHide, offAppShow, offAudioInterruptionBegin, offAudioInterruptionEnd, offBLECharacteristicValueChange, offBLEConnectionStateChange, offBLEMTUChange, offBLEPeripheralConnectionStateChanged, offBeaconServiceChange, offBeaconUpdate, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offCopyUrl, offDeviceMotionChange, offError, offGetWifiList, offGyroscopeChange, offHCEMessage, offKeyboardHeightChange, offLazyLoadError, offLocalServiceDiscoveryStop, offLocalServiceFound, offLocalServiceLost, offLocalServiceResolveFail, offLocationChange, offLocationChangeError, offMemoryWarning, offNetworkStatusChange, offNetworkWeakChange, offPageNotFound, offScreenRecordingStateChanged, offThemeChange, offUnhandledRejection, offUserCaptureScreen, offVoIPChatInterrupted, offVoIPChatMembersChanged, offVoIPChatSpeakersChanged, offVoIPChatStateChanged, offVoIPVideoMembersChanged, offWifiConnected, offWifiConnectedWithPartialInfo, offWindowResize, onAccelerometerChange, onAppHide, onAppShow, onAudioInterruptionBegin, onAudioInterruptionEnd, onBLECharacteristicValueChange, onBLEConnectionStateChange, onBLEMTUChange, onBLEPeripheralConnectionStateChanged, onBackgroundAudioPause, onBackgroundAudioPlay, onBackgroundAudioStop, onBackgroundFetchData, onBeaconServiceChange, onBeaconUpdate, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onCopyUrl, onDeviceMotionChange, onError, onGetWifiList, onGyroscopeChange, onHCEMessage, onKeyboardHeightChange, onLazyLoadError, onLocalServiceDiscoveryStop, onLocalServiceFound, onLocalServiceLost, onLocalServiceResolveFail, onLocationChange, onLocationChangeError, onMemoryWarning, onNeedPrivacyAuthorization, onNetworkStatusChange, onNetworkWeakChange, onPageNotFound, onScreenRecordingStateChanged, onThemeChange, onUnhandledRejection, onUserCaptureScreen, onVoIPChatInterrupted, onVoIPChatMembersChanged, onVoIPChatSpeakersChanged, onVoIPChatStateChanged, onVoIPVideoMembersChanged, onWifiConnected, onWifiConnectedWithPartialInfo, onWindowResize, openBluetoothAdapter, openBusinessView, openCard, openChannelsActivity, openChannelsEvent, openChannelsLive, openChannelsUserProfile, openCustomerServiceChat, openDocument, openEmbeddedMiniProgram, openLocation, openPrivacyContract, openSetting, openVideoEditor, pageScrollTo, pauseBackgroundAudio, pauseVoice, playBackgroundAudio, playVoice, pluginLogin, preloadAssets, preloadSkylineView, preloadWebview, previewImage, previewMedia, pxTransform, pxTransformHelper, reLaunch, readBLECharacteristicValue, redirectTo, refreshAudioSession, removeSavedFile, removeStorage, removeStorageSync, removeTabBarBadge, reportAnalytics, reportEvent, reportMonitor, reportPerformance, request, requestDeviceVoIP, requestOrderPayment, requestPayment, requestPluginPayment, requestSubscribeDeviceMessage, requestSubscribeMessage, requirePlugin, requirePrivacyAuthorize, reserveChannelsLive, revokeBufferURL, saveFile, saveFileToDisk, saveImageToPhotosAlbum, saveVideoToPhotosAlbum, scanCode, seekBackgroundAudio, sendHCEMessage, sendSms, setBLEMTU, setBackgroundColor, setBackgroundFetchToken, setBackgroundTextStyle, setClipboardData, setEnable1v1Chat, setEnableDebug, setInnerAudioOption, setKeepScreenOn, setNavigationBarColor, setNavigationBarTitle, setScreenBrightness, setStorage, setStorageSync, setTabBarBadge, setTabBarItem, setTabBarStyle, setTopBarText, setVisualEffectOnCapture, setWifiList, setWindowSize, shareFileMessage, shareToWeRun, shareVideoMessage, showActionSheet, showLoading, showModal, showNavigationBarLoading, showRedPackage, showShareImageMenu, showShareMenu, showTabBar, showTabBarRedDot, showToast, startAccelerometer, startBeaconDiscovery, startBluetoothDevicesDiscovery, startCompass, startDeviceMotionListening, startFacialRecognitionVerify, startFacialRecognitionVerifyAndUploadVideo, startGyroscope, startHCE, startLocalServiceDiscovery, startLocationUpdate, startLocationUpdateBackground, startPullDownRefresh, startRecord, startSoterAuthentication, startWifi, stopAccelerometer, stopBackgroundAudio, stopBeaconDiscovery, stopBluetoothDevicesDiscovery, stopCompass, stopDeviceMotionListening, stopGyroscope, stopHCE, stopLocalServiceDiscovery, stopLocationUpdate, stopPullDownRefresh, stopRecord, stopVoice, stopWifi, subscribeVoIPVideoMembers, switchTab, triggerTaskPoolMethods, unstable_SetPageIsTextNeedLayout, updatePageSync, updateShareMenu, updateVoIPChatMuteConfig, updateWeChatApp, uploadFile, vibrateLong, vibrateShort, writeBLECharacteristicValue };