hylid-bridge 4.0.24-alpha.3 → 4.0.26-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/README.md +5 -5
  2. package/lib/bridges.d.ts +41 -57
  3. package/lib/bridges.js +23 -32
  4. package/lib/clients/mp/alipay/index.d.ts +242 -4
  5. package/lib/clients/mp/alipay/index.js +92 -4
  6. package/lib/clients/mp/alipayhk/index.d.ts +235 -2
  7. package/lib/clients/mp/alipayhk/index.js +90 -3
  8. package/lib/clients/mp/chope/index.d.ts +235 -2
  9. package/lib/clients/mp/chope/index.js +90 -3
  10. package/lib/clients/mp/dana/index.d.ts +235 -2
  11. package/lib/clients/mp/dana/index.js +90 -3
  12. package/lib/clients/mp/demo/index.d.ts +266 -8
  13. package/lib/clients/mp/demo/index.js +114 -3
  14. package/lib/clients/mp/gcash/index.d.ts +235 -2
  15. package/lib/clients/mp/gcash/index.js +90 -3
  16. package/lib/clients/mp/tmn/index.d.ts +235 -2
  17. package/lib/clients/mp/tmn/index.js +90 -3
  18. package/lib/clients/mp/tngd/index.d.ts +235 -2
  19. package/lib/clients/mp/tngd/index.js +90 -3
  20. package/lib/clients/mp/wechat/index.d.ts +0 -1
  21. package/lib/clients/mp_web/alipay/index.d.ts +244 -4
  22. package/lib/clients/mp_web/alipay/index.js +94 -4
  23. package/lib/clients/mp_web/alipayhk/index.d.ts +315 -16
  24. package/lib/clients/mp_web/alipayhk/index.js +105 -8
  25. package/lib/clients/mp_web/chope/index.d.ts +235 -2
  26. package/lib/clients/mp_web/chope/index.js +89 -2
  27. package/lib/clients/mp_web/dana/index.d.ts +314 -16
  28. package/lib/clients/mp_web/dana/index.js +104 -8
  29. package/lib/clients/mp_web/demo/index.d.ts +265 -8
  30. package/lib/clients/mp_web/demo/index.js +112 -2
  31. package/lib/clients/mp_web/gcash/index.d.ts +314 -16
  32. package/lib/clients/mp_web/gcash/index.js +104 -8
  33. package/lib/clients/mp_web/mpay/index.d.ts +315 -24
  34. package/lib/clients/mp_web/mpay/index.js +106 -12
  35. package/lib/clients/mp_web/tmn/index.d.ts +314 -16
  36. package/lib/clients/mp_web/tmn/index.js +104 -8
  37. package/lib/clients/mp_web/tngd/index.d.ts +314 -16
  38. package/lib/clients/mp_web/tngd/index.js +104 -8
  39. package/lib/clients/mp_web/toss/index.d.ts +322 -16
  40. package/lib/clients/mp_web/toss/index.js +106 -8
  41. package/lib/clients/web/alipay/index.d.ts +231 -115
  42. package/lib/clients/web/alipay/index.js +115 -74
  43. package/lib/clients/web/demo/index.d.ts +181 -60
  44. package/lib/clients/web/demo/index.js +106 -48
  45. package/lib/clients/web/h5/index.d.ts +22 -14
  46. package/lib/clients/web/h5/index.js +10 -8
  47. package/lib/clients/web/tngdh5ng/index.d.ts +29 -21
  48. package/lib/clients/web/tngdh5ng/index.js +26 -18
  49. package/lib/clients/web/worldfirst/index.d.ts +7 -0
  50. package/lib/clients/web/worldfirst/index.js +7 -0
  51. package/lib/clients/web/worldfirst/wfOpenDocument.d.ts +20 -0
  52. package/lib/clients/web/worldfirst/wfOpenDocument.js +8 -0
  53. package/lib/common/apis/custom/mp_web/mpay/getAppToken.d.ts +1 -6
  54. package/lib/common/apis/generated/mp/getAppToken.d.ts +2 -14
  55. package/lib/common/apis/generated/mp_web/getAppToken.d.ts +2 -14
  56. package/lib/common/apis/generated/web/getAppToken.d.ts +2 -14
  57. package/lib/dsl.d.ts +12 -11
  58. package/lib/dsl.js +2 -2
  59. package/lib/umd/index.js +1 -1
  60. package/lib/umd/mp_web_alipay.js +1 -1
  61. package/lib/umd/mp_web_alipayhk.js +1 -1
  62. package/lib/umd/mp_web_chope.js +1 -1
  63. package/lib/umd/mp_web_dana.js +1 -1
  64. package/lib/umd/mp_web_demo.js +1 -1
  65. package/lib/umd/mp_web_gcash.js +1 -1
  66. package/lib/umd/mp_web_mpay.js +1 -1
  67. package/lib/umd/mp_web_tmn.js +1 -1
  68. package/lib/umd/mp_web_tngd.js +1 -1
  69. package/lib/umd/mp_web_toss.js +1 -1
  70. package/lib/umd/web_alipay.js +1 -1
  71. package/lib/umd/web_demo.js +1 -1
  72. package/lib/umd/web_h5.js +1 -1
  73. package/lib/umd/web_tngdh5ng.js +1 -1
  74. package/lib/umd/web_worldfirst.js +1 -0
  75. package/lib/whichCanIUse/compatibilities.json +125123 -1659
  76. package/lib/whichCanIUse/index.d.ts +6 -21
  77. package/lib/whichCanIUse/index.js +43 -65
  78. package/package.json +9 -9
  79. package/lib/clients/web/alipay/getClientInfo.d.ts +0 -2
  80. package/lib/clients/web/alipay/getClientInfo.js +0 -3
  81. package/lib/clients/web/alipayhk/getClientInfo.d.ts +0 -2
  82. package/lib/clients/web/alipayhk/getClientInfo.js +0 -3
  83. package/lib/clients/web/alipayhk/index.d.ts +0 -24
  84. package/lib/clients/web/alipayhk/index.js +0 -9
  85. package/lib/common/apis/generated/web/getClientInfo.d.ts +0 -33
  86. package/lib/common/apis/generated/web/getClientInfo.js +0 -8
  87. package/lib/umd/web_alipayhk.js +0 -1
  88. /package/lib/clients/web/{alipayhk → demo}/getAppToken.d.ts +0 -0
  89. /package/lib/clients/web/{alipayhk → demo}/getAppToken.js +0 -0
@@ -147,50 +147,80 @@ import { showSharePanel, showSharePanelAsync } from '../../../common/apis/genera
147
147
  import { hideOptionButton, hideOptionButtonAsync } from '../../../common/apis/generated/mp/hideOptionButton';
148
148
  declare const _default: {
149
149
  addFatigueAction: (args?: import("@hylid/types").AddFatigueActionArgs | undefined) => void;
150
+ addFatigueActionAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
150
151
  addPhoneContact: (args: Partial<AddPhoneContactArgs>) => void;
152
+ addPhoneContactAsync: (args?: Partial<AddPhoneContactArgs> | undefined) => Promise<{
153
+ success: true;
154
+ }>;
151
155
  alert: (args?: AlertArgs | undefined) => void;
156
+ alertAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
152
157
  apDisableJSAPI: (args?: any) => void;
158
+ apDisableJSAPIAsync: (args?: any) => Promise<unknown>;
153
159
  appxrpc: (args?: {
154
160
  reqeustData: any;
155
161
  } | undefined) => void;
162
+ appxrpcAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
156
163
  APRegionRPC: (args?: any) => void;
164
+ APRegionRPCAsync: (args?: any) => Promise<unknown>;
157
165
  batchQueryCdpSpaceInfo: (args?: any) => void;
166
+ batchQueryCdpSpaceInfoAsync: (args?: any) => Promise<unknown>;
158
167
  chooseImage: (args: ChooseImageArgs) => void;
168
+ chooseImageAsync: (args?: ChooseImageArgs | undefined) => Promise<{
169
+ apFilePaths: string[];
170
+ }>;
159
171
  choosePhoneContact: (args: ChoosePhoneContactArgs) => void;
172
+ choosePhoneContactAsync: (args?: ChoosePhoneContactArgs | undefined) => Promise<ChoosePhoneContactCallbackValue>;
160
173
  clearStorage: (args?: AsyncCallback<any> | undefined) => void;
174
+ clearStorageAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
161
175
  clearStorageSync: () => void;
162
176
  closeBluetoothAdapter: (args?: AsyncCallback<any> | undefined) => void;
177
+ closeBluetoothAdapterAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
163
178
  closeSocket: (args?: AsyncCallback<any> | undefined) => void;
179
+ closeSocketAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
164
180
  confirm: (args: ConfirmArgs) => void;
181
+ confirmAsync: (args?: ConfirmArgs | undefined) => Promise<ConfirmCallbackValue>;
165
182
  connectBLEDevice: (args: {
166
183
  deviceId: string;
167
184
  } & AsyncCallback<any>) => void;
185
+ connectBLEDeviceAsync: (args?: ({
186
+ deviceId: string;
187
+ } & AsyncCallback<any>) | undefined) => Promise<any>;
168
188
  connectSocket: (args?: ConnectSocketArgs | undefined) => void;
189
+ connectSocketAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
169
190
  createAnimation: (args?: CreateAnimationArgs | undefined) => Animation;
170
191
  createWebViewContext: (id: string) => WebViewContext;
171
192
  datePicker: (args?: DatePickerArgs | undefined) => void;
193
+ datePickerAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
172
194
  disconnectBLEDevice: (args: {
173
195
  deviceId: string;
174
196
  } & AsyncCallback<any>) => void;
197
+ disconnectBLEDeviceAsync: (args?: ({
198
+ deviceId: string;
199
+ } & AsyncCallback<any>) | undefined) => Promise<any>;
175
200
  downloadFile: (args: DownloadFileArgs) => void;
201
+ downloadFileAsync: (args?: DownloadFileArgs | undefined) => Promise<{
202
+ apFilePath: string;
203
+ }>;
176
204
  exitApp: (args?: any) => void;
205
+ exitAppAsync: (args?: any) => Promise<unknown>;
177
206
  getAppIdSync: () => {
178
207
  appId: string;
179
208
  };
180
- getAppToken: (args: {
181
- appName: string;
182
- appKey: string;
183
- } & import("@hylid/types").AsyncCallback<{
184
- appToken: string;
185
- }>) => void;
209
+ getAppToken: (args?: any) => void;
210
+ getAppTokenAsync: (args?: any) => Promise<unknown>;
186
211
  getAuthCode: (args: {
187
212
  scopes: string | string[];
188
213
  appId?: string | undefined;
189
214
  } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
215
+ getAuthCodeAsync: (args?: ({
216
+ scopes: string | string[];
217
+ appId?: string | undefined;
218
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) | undefined) => Promise<GetAuthCodeCallbackValue>;
190
219
  getBatteryInfo: (args?: AsyncCallback<{
191
220
  level: number;
192
221
  isCharging: boolean;
193
222
  }> | undefined) => void;
223
+ getBatteryInfoAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
194
224
  getBLEDeviceCharacteristics: (args: {
195
225
  deviceId: string;
196
226
  serviceId: string;
@@ -207,6 +237,34 @@ declare const _default: {
207
237
  };
208
238
  }[];
209
239
  }>) => void;
240
+ getBLEDeviceCharacteristicsAsync: (args?: ({
241
+ deviceId: string;
242
+ serviceId: string;
243
+ } & AsyncCallback<{
244
+ characteristic: {
245
+ characteristicId: string;
246
+ serviceId: string;
247
+ value: string;
248
+ properties: {
249
+ read: boolean;
250
+ write: boolean;
251
+ notify: boolean;
252
+ indicate: boolean;
253
+ };
254
+ }[];
255
+ }>) | undefined) => Promise<{
256
+ characteristic: {
257
+ characteristicId: string;
258
+ serviceId: string;
259
+ value: string;
260
+ properties: {
261
+ read: boolean;
262
+ write: boolean;
263
+ notify: boolean;
264
+ indicate: boolean;
265
+ };
266
+ }[];
267
+ }>;
210
268
  getBLEDeviceServices: (args: {
211
269
  deviceId: string;
212
270
  } & AsyncCallback<{
@@ -215,38 +273,108 @@ declare const _default: {
215
273
  serviceId: string;
216
274
  }[];
217
275
  }>) => void;
276
+ getBLEDeviceServicesAsync: (args?: ({
277
+ deviceId: string;
278
+ } & AsyncCallback<{
279
+ services: {
280
+ isPrimary: boolean;
281
+ serviceId: string;
282
+ }[];
283
+ }>) | undefined) => Promise<{
284
+ services: {
285
+ isPrimary: boolean;
286
+ serviceId: string;
287
+ }[];
288
+ }>;
218
289
  getBluetoothAdapterState: (args: AsyncCallback<{
219
290
  discovering: boolean;
220
291
  available: boolean;
221
292
  }>) => void;
293
+ getBluetoothAdapterStateAsync: (args?: AsyncCallback<{
294
+ discovering: boolean;
295
+ available: boolean;
296
+ }> | undefined) => Promise<{
297
+ discovering: boolean;
298
+ available: boolean;
299
+ }>;
222
300
  getBluetoothDevices: (args: AsyncCallback<{
223
301
  devices: BluetoothDevices[];
224
302
  }>) => void;
303
+ getBluetoothDevicesAsync: (args?: AsyncCallback<{
304
+ devices: BluetoothDevices[];
305
+ }> | undefined) => Promise<{
306
+ devices: BluetoothDevices[];
307
+ }>;
225
308
  getClipboard: (args: GetClipboardArgs) => void;
309
+ getClipboardAsync: (args?: GetClipboardArgs | undefined) => Promise<{
310
+ text: string;
311
+ }>;
226
312
  getComponentAuth: (args?: any) => void;
313
+ getComponentAuthAsync: (args?: any) => Promise<unknown>;
227
314
  getConnectedBluetoothDevices: (args: {
228
315
  deviceId: string;
229
316
  } & AsyncCallback<any>) => void;
317
+ getConnectedBluetoothDevicesAsync: (args?: ({
318
+ deviceId: string;
319
+ } & AsyncCallback<any>) | undefined) => Promise<any>;
230
320
  getFileInfo: (args: GetFileArgs) => void;
321
+ getFileInfoAsync: (args?: GetFileArgs | undefined) => Promise<{
322
+ size: number;
323
+ digest: string;
324
+ }>;
231
325
  getImageInfo: (args: GetImageInfo) => void;
326
+ getImageInfoAsync: (args?: GetImageInfo | undefined) => Promise<GetImageInfoCallbackValue>;
232
327
  getLocation: (args: {
233
328
  bizType?: string | undefined;
234
329
  requestType?: number | undefined;
235
330
  timeout?: number | undefined;
236
331
  horizontalAccuracy?: number | undefined;
237
332
  } & GetLocationArgs) => void;
333
+ getLocationAsync: (args?: ({
334
+ bizType?: string | undefined;
335
+ requestType?: number | undefined;
336
+ timeout?: number | undefined;
337
+ horizontalAccuracy?: number | undefined;
338
+ } & GetLocationArgs) | undefined) => Promise<GetLocationCallbackValue>;
238
339
  getNetworkType: (args: GetNetworkTypeArgs) => void;
340
+ getNetworkTypeAsync: (args?: GetNetworkTypeArgs | undefined) => Promise<GetNetworkTypeCallbackValue>;
239
341
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
342
+ getOpenUserInfoAsync: (args?: GetOpenUserInfoArgs | undefined) => Promise<{
343
+ response: string;
344
+ }>;
240
345
  getPaymentCode: (args?: any) => void;
346
+ getPaymentCodeAsync: (args?: any) => Promise<unknown>;
241
347
  getPhoneNumber: (args?: any) => void;
348
+ getPhoneNumberAsync: (args?: any) => Promise<unknown>;
242
349
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
350
+ getSavedFileInfoAsync: (args?: GetSavedFileInfo | undefined) => Promise<{
351
+ size: number;
352
+ createTime: number;
353
+ }>;
243
354
  getSavedFileList: (args: GetSavedFileListArgs) => void;
355
+ getSavedFileListAsync: (args?: GetSavedFileListArgs | undefined) => Promise<{
356
+ fileList: {
357
+ size: number;
358
+ createTime: number;
359
+ apFilePath: string;
360
+ }[];
361
+ }>;
244
362
  getScreenBrightness: (args: AsyncCallback<{
245
363
  brightness: number;
246
364
  }>) => void;
365
+ getScreenBrightnessAsync: (args?: AsyncCallback<{
366
+ brightness: number;
367
+ }> | undefined) => Promise<{
368
+ brightness: number;
369
+ }>;
247
370
  getServerTime: (args: AsyncCallback<{
248
371
  time: number;
249
372
  }>) => void;
373
+ getServerTimeAsync: (args?: AsyncCallback<{
374
+ time: number;
375
+ }> | undefined) => Promise<{
376
+ time: number;
377
+ }>;
250
378
  getSetting: (args?: AsyncCallback<{
251
379
  authSetting: {
252
380
  camera: boolean;
@@ -256,31 +384,54 @@ declare const _default: {
256
384
  phoneNumber: boolean;
257
385
  };
258
386
  }> | undefined) => void;
387
+ getSettingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
259
388
  getSiteInfo: (args: AsyncCallback<GetSiteInfoCallbackValue>) => void;
389
+ getSiteInfoAsync: (args?: AsyncCallback<GetSiteInfoCallbackValue> | undefined) => Promise<GetSiteInfoCallbackValue>;
260
390
  getStorage: (args: GetStorage) => void;
391
+ getStorageAsync: (args?: GetStorage | undefined) => Promise<{
392
+ data: any;
393
+ }>;
261
394
  getStorageSync: (args: {
262
395
  key: string;
263
396
  }) => {
264
397
  data: any;
265
398
  };
266
399
  getSystemInfo: (args: GetSystemInfoArgs) => void;
400
+ getSystemInfoAsync: (args?: GetSystemInfoArgs | undefined) => Promise<GetSystemInfoCallbackValue>;
267
401
  getSystemInfoSync: () => GetSystemInfoCallbackValue;
268
402
  hideBackHome: () => void;
403
+ hideBackHomeAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
269
404
  hideKeyboard: () => void;
405
+ hideKeyboardAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
270
406
  hideLoading: (args?: HideLoadingArgs | undefined) => void;
407
+ hideLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
271
408
  hideNavigationBarLoading: () => void;
409
+ hideNavigationBarLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
272
410
  hideTabBar: (args: HideTabBarArgs) => void;
411
+ hideTabBarAsync: (args?: HideTabBarArgs | undefined) => Promise<undefined>;
273
412
  hideToast: (args?: AsyncCallback<any> | undefined) => void;
413
+ hideToastAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
274
414
  inquireQuote: (args?: any) => void;
415
+ inquireQuoteAsync: (args?: any) => Promise<unknown>;
275
416
  isInstalledApp: (args?: any) => void;
417
+ isInstalledAppAsync: (args?: any) => Promise<unknown>;
276
418
  makePhoneCall: (args: {
277
419
  number: string;
278
420
  }) => void;
421
+ makePhoneCallAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
279
422
  multiLevelSelect: (args: MultiLevelSelectArgs) => void;
423
+ multiLevelSelectAsync: (args?: MultiLevelSelectArgs | undefined) => Promise<{
424
+ success: boolean;
425
+ result: any[];
426
+ }>;
280
427
  navigateBack: (args: NavigateBackArgs) => void;
428
+ navigateBackAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
281
429
  navigateBackMiniProgram: (args: NavigateBackMiniProgramArgs) => void;
430
+ navigateBackMiniProgramAsync: (args?: NavigateBackMiniProgramArgs | undefined) => Promise<undefined>;
282
431
  navigateTo: (args: NavigateToArgs) => void;
432
+ navigateToAsync: (args?: NavigateToArgs | undefined) => Promise<undefined>;
283
433
  navigateToMiniProgram: (args: NavigateToMiniProgramArgs) => void;
434
+ navigateToMiniProgramAsync: (args?: NavigateToMiniProgramArgs | undefined) => Promise<undefined>;
284
435
  notifyBLECharacteristicValueChange: (args: {
285
436
  deviceId: string;
286
437
  serviceId: string;
@@ -288,6 +439,13 @@ declare const _default: {
288
439
  descriptorId?: string | undefined;
289
440
  state?: boolean | undefined;
290
441
  } & AsyncCallback<any>) => void;
442
+ notifyBLECharacteristicValueChangeAsync: (args?: ({
443
+ deviceId: string;
444
+ serviceId: string;
445
+ characteristicId: string;
446
+ descriptorId?: string | undefined;
447
+ state?: boolean | undefined;
448
+ } & AsyncCallback<any>) | undefined) => Promise<any>;
291
449
  offAccelerometerChange: (args?: ((arg: any) => void) | undefined) => void;
292
450
  offBLECharacteristicValueChange: (args?: ((arg: any) => void) | undefined) => void;
293
451
  offBLEConnectionStateChanged: (args?: ((arg: any) => void) | undefined) => void;
@@ -337,11 +495,17 @@ declare const _default: {
337
495
  onSocketOpen: (args: (arg: any) => void) => void;
338
496
  onUserCaptureScreen: (args: () => void) => void;
339
497
  openBluetoothAdapter: (args: AsyncCallback<any>) => void;
498
+ openBluetoothAdapterAsync: (args?: AsyncCallback<any> | undefined) => Promise<any>;
340
499
  openDocument: (args: {
341
500
  filePath: string;
342
501
  fileType: string;
343
502
  } & AsyncCallback<any>) => void;
503
+ openDocumentAsync: (args?: ({
504
+ filePath: string;
505
+ fileType: string;
506
+ } & AsyncCallback<any>) | undefined) => Promise<any>;
344
507
  openSchemeWithBacking: (args?: any) => void;
508
+ openSchemeWithBackingAsync: (args?: any) => Promise<unknown>;
345
509
  openSetting: (args?: AsyncCallback<{
346
510
  authSetting: {
347
511
  camera: any;
@@ -351,17 +515,35 @@ declare const _default: {
351
515
  phoneNumber: any;
352
516
  };
353
517
  }> | undefined) => void;
518
+ openSettingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
354
519
  pageScrollTo: (args: PageScrollToArgs) => void;
520
+ pageScrollToAsync: (args?: PageScrollToArgs | undefined) => Promise<undefined>;
355
521
  paySignCenter: (args?: any) => void;
522
+ paySignCenterAsync: (args?: any) => Promise<unknown>;
356
523
  previewImage: (args: PreviewImageArgs) => void;
524
+ previewImageAsync: (args?: PreviewImageArgs | undefined) => Promise<undefined>;
357
525
  prompt: (args: PromptArgs) => void;
526
+ promptAsync: (args?: PromptArgs | undefined) => Promise<PromptCallbackValue>;
358
527
  readBLECharacteristicValue: (args: ReadBLECharacteristicValueArgs) => void;
528
+ readBLECharacteristicValueAsync: (args?: ReadBLECharacteristicValueArgs | undefined) => Promise<{
529
+ characteristic: {
530
+ characteristicId: string;
531
+ serviceId: string;
532
+ value: string;
533
+ };
534
+ }>;
359
535
  redirectTo: (args: RedirectToArgs) => void;
536
+ redirectToAsync: (args?: RedirectToArgs | undefined) => Promise<undefined>;
360
537
  regionFetchAllApps: (args?: any) => void;
538
+ regionFetchAllAppsAsync: (args?: any) => Promise<unknown>;
361
539
  regionSearchAppsByKeywords: (args?: any) => void;
540
+ regionSearchAppsByKeywordsAsync: (args?: any) => Promise<unknown>;
362
541
  reLaunch: (args: ReLaunchArgs) => void;
542
+ reLaunchAsync: (args?: ReLaunchArgs | undefined) => Promise<undefined>;
363
543
  removeSavedFile: (args: RemoveSavedFileArgs) => void;
544
+ removeSavedFileAsync: (args?: RemoveSavedFileArgs | undefined) => Promise<void>;
364
545
  removeStorage: (args: RemoveStorageArgs) => void;
546
+ removeStorageAsync: (args?: RemoveStorageArgs | undefined) => Promise<undefined>;
365
547
  removeStorageSync: (args: {
366
548
  key: string;
367
549
  }) => void;
@@ -379,61 +561,137 @@ declare const _default: {
379
561
  status: number;
380
562
  headers: any;
381
563
  }>) => void;
564
+ requestAsync: (args?: ({
565
+ url: string;
566
+ headers?: {
567
+ [key: string]: string;
568
+ } | undefined;
569
+ method?: "GET" | "POST" | undefined;
570
+ data?: any;
571
+ timeout?: number | undefined;
572
+ dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
573
+ } & import("@hylid/types").AsyncCallback<{
574
+ data: any;
575
+ status: number;
576
+ headers: any;
577
+ }>) | undefined) => Promise<{
578
+ data: any;
579
+ status: number;
580
+ headers: any;
581
+ }>;
382
582
  rpc: (args: import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
383
583
  headers: Record<string, string>;
384
584
  resData: object;
385
585
  }>) => void;
586
+ rpcAsync: (args?: (import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
587
+ headers: Record<string, string>;
588
+ resData: object;
589
+ }>) | undefined) => Promise<{
590
+ headers: Record<string, string>;
591
+ resData: object;
592
+ }>;
386
593
  saveFile: (args: SaveFileArgs) => void;
594
+ saveFileAsync: (args?: SaveFileArgs | undefined) => Promise<{
595
+ apFilePath: string;
596
+ }>;
387
597
  saveImage: (args: SaveImageArgs) => void;
598
+ saveImageAsync: (args?: SaveImageArgs | undefined) => Promise<undefined>;
388
599
  scan: (args: ScanArgs) => void;
600
+ scanAsync: (args?: ScanArgs | undefined) => Promise<ScanCallbackValue>;
389
601
  sendSocketMessage: (args?: SendSocketMessageArgs | undefined) => void;
602
+ sendSocketMessageAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
390
603
  setBackgroundColor: (args: SetBackgroundColorArgs) => void;
604
+ setBackgroundColorAsync: (args?: SetBackgroundColorArgs | undefined) => Promise<undefined>;
391
605
  setCanPullDown: (args: {
392
606
  canPullDown: boolean;
393
607
  } & import("@hylid/types").AsyncCallback<void>) => void;
608
+ setCanPullDownAsync: (args?: ({
609
+ canPullDown: boolean;
610
+ } & import("@hylid/types").AsyncCallback<void>) | undefined) => Promise<void>;
394
611
  setClipboard: (args: SetClipboardArgs) => void;
612
+ setClipboardAsync: (args?: SetClipboardArgs | undefined) => Promise<undefined>;
395
613
  setKeepScreenOn: (args: SetKeepScreenOnArgs) => void;
614
+ setKeepScreenOnAsync: (args?: SetKeepScreenOnArgs | undefined) => Promise<undefined>;
396
615
  setNavigationBar: (args: SetNavigationBarArgs) => void;
616
+ setNavigationBarAsync: (args?: SetNavigationBarArgs | undefined) => Promise<undefined>;
397
617
  setOptionMenu: (args?: (import("@hylid/types").Common & import("@hylid/types").AsyncCallback<any>) | undefined) => void;
618
+ setOptionMenuAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
398
619
  setScreenBrightness: (args: SetScreenBrightnessArgs) => void;
620
+ setScreenBrightnessAsync: (args?: SetScreenBrightnessArgs | undefined) => Promise<undefined>;
399
621
  setStorage: (args: SetStorage) => void;
622
+ setStorageAsync: (args?: SetStorage | undefined) => Promise<undefined>;
400
623
  setStorageSync: (args: {
401
624
  key: string;
402
625
  data: any;
403
626
  }) => void;
404
627
  setTabBarStyle: (args: SetTabBarStyleArgs) => void;
628
+ setTabBarStyleAsync: (args?: SetTabBarStyleArgs | undefined) => Promise<any>;
405
629
  showActionSheet: (args: ShowActionSheetArgs) => void;
630
+ showActionSheetAsync: (args?: ShowActionSheetArgs | undefined) => Promise<any>;
406
631
  showAuthGuide: (args: import("@hylid/types").AsyncCallback<{
407
632
  shown: boolean;
408
633
  }> & {
409
634
  authType: string;
410
635
  bizType?: string | undefined;
411
636
  }) => void;
637
+ showAuthGuideAsync: (args?: (import("@hylid/types").AsyncCallback<{
638
+ shown: boolean;
639
+ }> & {
640
+ authType: string;
641
+ bizType?: string | undefined;
642
+ }) | undefined) => Promise<{
643
+ shown: boolean;
644
+ }>;
412
645
  showLoading: (args?: ShowLoadingArgs | undefined) => void;
646
+ showLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
413
647
  showNavigationBarLoading: () => void;
648
+ showNavigationBarLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
414
649
  showToast: (args?: ShowToastArgs | undefined) => void;
650
+ showToastAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
415
651
  signContract: (args: SignContractArgs) => void;
652
+ signContractAsync: (args?: SignContractArgs | undefined) => Promise<{
653
+ authState: string;
654
+ authCode: string;
655
+ }>;
416
656
  startApp: (args?: any) => void;
657
+ startAppAsync: (args?: any) => Promise<unknown>;
417
658
  startBizService: (args?: any) => void;
659
+ startBizServiceAsync: (args?: any) => Promise<unknown>;
418
660
  startBluetoothDevicesDiscovery: (args?: StartBluetoothDevicesDiscoveryArgs | undefined) => void;
661
+ startBluetoothDevicesDiscoveryAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
419
662
  startPullDownRefresh: (args?: AsyncCallback<any> | undefined) => void;
663
+ startPullDownRefreshAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
420
664
  stopBluetoothDevicesDiscovery: (args?: AsyncCallback<any> | undefined) => void;
665
+ stopBluetoothDevicesDiscoveryAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
421
666
  stopPullDownRefresh: (args?: AsyncCallback<any> | undefined) => void;
667
+ stopPullDownRefreshAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
422
668
  switchTab: (args: SwitchTabArgs) => void;
669
+ switchTabAsync: (args?: SwitchTabArgs | undefined) => Promise<undefined>;
423
670
  thirdPartyAuthForAc: (args?: any) => void;
671
+ thirdPartyAuthForAcAsync: (args?: any) => Promise<unknown>;
424
672
  tradePay: (args: TradePayArgs) => void;
673
+ tradePayAsync: (args?: TradePayArgs | undefined) => Promise<{
674
+ resultCode: string;
675
+ }>;
425
676
  uploadApdidToken: (args?: any) => void;
677
+ uploadApdidTokenAsync: (args?: any) => Promise<unknown>;
426
678
  uploadFile: (args: UploadFileArgs) => void;
679
+ uploadFileAsync: (args?: UploadFileArgs | undefined) => Promise<UploadFileCallbackValue>;
427
680
  vibrate: (args: AsyncCallback<void>) => void;
681
+ vibrateAsync: (args?: AsyncCallback<void> | undefined) => Promise<void>;
428
682
  watchShake: (args?: AsyncCallback<any> | undefined) => void;
683
+ watchShakeAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
429
684
  writeBLECharacteristicValue: (args: WriteBLECharacteristicValueArgs) => void;
685
+ writeBLECharacteristicValueAsync: (args?: WriteBLECharacteristicValueArgs | undefined) => Promise<any>;
430
686
  createSelectorQuery: () => SelectorQuery;
431
687
  canIUse: (args: string) => boolean;
432
688
  getStorageInfo: (args?: any) => void;
689
+ getStorageInfoAsync: (args?: any) => Promise<unknown>;
433
690
  getStorageInfoSync: (args?: any) => void;
434
691
  showSharePanel: (args?: any) => void;
692
+ showSharePanelAsync: (args?: any) => Promise<unknown>;
435
693
  hideOptionButton: (args?: any) => void;
694
+ hideOptionButtonAsync: (args?: any) => Promise<unknown>;
436
695
  };
437
696
  export default _default;
438
- export { addFatigueAction, addPhoneContact, alert, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, choosePhoneContact, clearStorage, clearStorageSync, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, createAnimation, createWebViewContext, datePicker, disconnectBLEDevice, downloadFile, exitApp, getAppIdSync, getAppToken, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getComponentAuth, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getLocation, getNetworkType, getOpenUserInfo, getPaymentCode, getPhoneNumber, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSiteInfo, getStorage, getStorageSync, getSystemInfo, getSystemInfoSync, hideBackHome, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideToast, inquireQuote, isInstalledApp, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToMiniProgram, notifyBLECharacteristicValueChange, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offMemoryWarning, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onMemoryWarning, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openDocument, openSchemeWithBacking, openSetting, pageScrollTo, paySignCenter, previewImage, prompt, readBLECharacteristicValue, redirectTo, regionFetchAllApps, regionSearchAppsByKeywords, reLaunch, removeSavedFile, removeStorage, removeStorageSync, request, rpc, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setOptionMenu, setScreenBrightness, setStorage, setStorageSync, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startApp, startBizService, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, thirdPartyAuthForAc, tradePay, uploadApdidToken, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, createSelectorQuery, canIUse, getStorageInfo, getStorageInfoSync, showSharePanel, hideOptionButton, };
439
- export { addFatigueActionAsync, addPhoneContactAsync, alertAsync, apDisableJSAPIAsync, appxrpcAsync, APRegionRPCAsync, batchQueryCdpSpaceInfoAsync, chooseImageAsync, choosePhoneContactAsync, clearStorageAsync, closeBluetoothAdapterAsync, closeSocketAsync, confirmAsync, connectBLEDeviceAsync, connectSocketAsync, datePickerAsync, disconnectBLEDeviceAsync, downloadFileAsync, exitAppAsync, getAppTokenAsync, getAuthCodeAsync, getBatteryInfoAsync, getBLEDeviceCharacteristicsAsync, getBLEDeviceServicesAsync, getBluetoothAdapterStateAsync, getBluetoothDevicesAsync, getClipboardAsync, getComponentAuthAsync, getConnectedBluetoothDevicesAsync, getFileInfoAsync, getImageInfoAsync, getLocationAsync, getNetworkTypeAsync, getOpenUserInfoAsync, getPaymentCodeAsync, getPhoneNumberAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getSiteInfoAsync, getStorageAsync, getSystemInfoAsync, hideBackHomeAsync, hideKeyboardAsync, hideLoadingAsync, hideNavigationBarLoadingAsync, hideTabBarAsync, hideToastAsync, inquireQuoteAsync, isInstalledAppAsync, makePhoneCallAsync, multiLevelSelectAsync, navigateBackAsync, navigateBackMiniProgramAsync, navigateToAsync, navigateToMiniProgramAsync, notifyBLECharacteristicValueChangeAsync, openBluetoothAdapterAsync, openDocumentAsync, openSchemeWithBackingAsync, openSettingAsync, pageScrollToAsync, paySignCenterAsync, previewImageAsync, promptAsync, readBLECharacteristicValueAsync, redirectToAsync, regionFetchAllAppsAsync, regionSearchAppsByKeywordsAsync, reLaunchAsync, removeSavedFileAsync, removeStorageAsync, requestAsync, rpcAsync, saveFileAsync, saveImageAsync, scanAsync, sendSocketMessageAsync, setBackgroundColorAsync, setCanPullDownAsync, setClipboardAsync, setKeepScreenOnAsync, setNavigationBarAsync, setOptionMenuAsync, setScreenBrightnessAsync, setStorageAsync, setTabBarStyleAsync, showActionSheetAsync, showAuthGuideAsync, showLoadingAsync, showNavigationBarLoadingAsync, showToastAsync, signContractAsync, startAppAsync, startBizServiceAsync, startBluetoothDevicesDiscoveryAsync, startPullDownRefreshAsync, stopBluetoothDevicesDiscoveryAsync, stopPullDownRefreshAsync, switchTabAsync, thirdPartyAuthForAcAsync, tradePayAsync, uploadApdidTokenAsync, uploadFileAsync, vibrateAsync, watchShakeAsync, writeBLECharacteristicValueAsync, getStorageInfoAsync, showSharePanelAsync, hideOptionButtonAsync, };
697
+ export { addFatigueAction, addFatigueActionAsync, addPhoneContact, addPhoneContactAsync, alert, alertAsync, apDisableJSAPI, apDisableJSAPIAsync, appxrpc, appxrpcAsync, APRegionRPC, APRegionRPCAsync, batchQueryCdpSpaceInfo, batchQueryCdpSpaceInfoAsync, chooseImage, chooseImageAsync, choosePhoneContact, choosePhoneContactAsync, clearStorage, clearStorageAsync, clearStorageSync, closeBluetoothAdapter, closeBluetoothAdapterAsync, closeSocket, closeSocketAsync, confirm, confirmAsync, connectBLEDevice, connectBLEDeviceAsync, connectSocket, connectSocketAsync, createAnimation, createWebViewContext, datePicker, datePickerAsync, disconnectBLEDevice, disconnectBLEDeviceAsync, downloadFile, downloadFileAsync, exitApp, exitAppAsync, getAppIdSync, getAppToken, getAppTokenAsync, getAuthCode, getAuthCodeAsync, getBatteryInfo, getBatteryInfoAsync, getBLEDeviceCharacteristics, getBLEDeviceCharacteristicsAsync, getBLEDeviceServices, getBLEDeviceServicesAsync, getBluetoothAdapterState, getBluetoothAdapterStateAsync, getBluetoothDevices, getBluetoothDevicesAsync, getClipboard, getClipboardAsync, getComponentAuth, getComponentAuthAsync, getConnectedBluetoothDevices, getConnectedBluetoothDevicesAsync, getFileInfo, getFileInfoAsync, getImageInfo, getImageInfoAsync, getLocation, getLocationAsync, getNetworkType, getNetworkTypeAsync, getOpenUserInfo, getOpenUserInfoAsync, getPaymentCode, getPaymentCodeAsync, getPhoneNumber, getPhoneNumberAsync, getSavedFileInfo, getSavedFileInfoAsync, getSavedFileList, getSavedFileListAsync, getScreenBrightness, getScreenBrightnessAsync, getServerTime, getServerTimeAsync, getSetting, getSettingAsync, getSiteInfo, getSiteInfoAsync, getStorage, getStorageAsync, getStorageSync, getSystemInfo, getSystemInfoAsync, getSystemInfoSync, hideBackHome, hideBackHomeAsync, hideKeyboard, hideKeyboardAsync, hideLoading, hideLoadingAsync, hideNavigationBarLoading, hideNavigationBarLoadingAsync, hideTabBar, hideTabBarAsync, hideToast, hideToastAsync, inquireQuote, inquireQuoteAsync, isInstalledApp, isInstalledAppAsync, makePhoneCall, makePhoneCallAsync, multiLevelSelect, multiLevelSelectAsync, navigateBack, navigateBackAsync, navigateBackMiniProgram, navigateBackMiniProgramAsync, navigateTo, navigateToAsync, navigateToMiniProgram, navigateToMiniProgramAsync, notifyBLECharacteristicValueChange, notifyBLECharacteristicValueChangeAsync, offAccelerometerChange, offBLECharacteristicValueChange, offBLEConnectionStateChanged, offBluetoothAdapterStateChange, offBluetoothDeviceFound, offCompassChange, offMemoryWarning, offSocketClose, offSocketError, offSocketMessage, offSocketOpen, offUserCaptureScreen, onAccelerometerChange, onBLECharacteristicValueChange, onBLEConnectionStateChanged, onBluetoothAdapterStateChange, onBluetoothDeviceFound, onCompassChange, onMemoryWarning, onSocketClose, onSocketError, onSocketMessage, onSocketOpen, onUserCaptureScreen, openBluetoothAdapter, openBluetoothAdapterAsync, openDocument, openDocumentAsync, openSchemeWithBacking, openSchemeWithBackingAsync, openSetting, openSettingAsync, pageScrollTo, pageScrollToAsync, paySignCenter, paySignCenterAsync, previewImage, previewImageAsync, prompt, promptAsync, readBLECharacteristicValue, readBLECharacteristicValueAsync, redirectTo, redirectToAsync, regionFetchAllApps, regionFetchAllAppsAsync, regionSearchAppsByKeywords, regionSearchAppsByKeywordsAsync, reLaunch, reLaunchAsync, removeSavedFile, removeSavedFileAsync, removeStorage, removeStorageAsync, removeStorageSync, request, requestAsync, rpc, rpcAsync, saveFile, saveFileAsync, saveImage, saveImageAsync, scan, scanAsync, sendSocketMessage, sendSocketMessageAsync, setBackgroundColor, setBackgroundColorAsync, setCanPullDown, setCanPullDownAsync, setClipboard, setClipboardAsync, setKeepScreenOn, setKeepScreenOnAsync, setNavigationBar, setNavigationBarAsync, setOptionMenu, setOptionMenuAsync, setScreenBrightness, setScreenBrightnessAsync, setStorage, setStorageAsync, setStorageSync, setTabBarStyle, setTabBarStyleAsync, showActionSheet, showActionSheetAsync, showAuthGuide, showAuthGuideAsync, showLoading, showLoadingAsync, showNavigationBarLoading, showNavigationBarLoadingAsync, showToast, showToastAsync, signContract, signContractAsync, startApp, startAppAsync, startBizService, startBizServiceAsync, startBluetoothDevicesDiscovery, startBluetoothDevicesDiscoveryAsync, startPullDownRefresh, startPullDownRefreshAsync, stopBluetoothDevicesDiscovery, stopBluetoothDevicesDiscoveryAsync, stopPullDownRefresh, stopPullDownRefreshAsync, switchTab, switchTabAsync, thirdPartyAuthForAc, thirdPartyAuthForAcAsync, tradePay, tradePayAsync, uploadApdidToken, uploadApdidTokenAsync, uploadFile, uploadFileAsync, vibrate, vibrateAsync, watchShake, watchShakeAsync, writeBLECharacteristicValue, writeBLECharacteristicValueAsync, createSelectorQuery, canIUse, getStorageInfo, getStorageInfoAsync, getStorageInfoSync, showSharePanel, showSharePanelAsync, hideOptionButton, hideOptionButtonAsync, };