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
@@ -1,40 +1,59 @@
1
1
  import { addFatigueAction, addFatigueActionAsync } from '../../../common/apis/generated/web/addFatigueAction';
2
2
  import { addPhoneContact, addPhoneContactAsync } from '../../../common/apis/generated/web/addPhoneContact';
3
+ import alert from './alert';
3
4
  import { apDisableJSAPI, apDisableJSAPIAsync } from '../../../common/apis/generated/web/apDisableJSAPI';
4
5
  import { appxrpc, appxrpcAsync } from '../../../common/apis/generated/web/appxrpc';
5
6
  import { APRegionRPC, APRegionRPCAsync } from '../../../common/apis/generated/web/APRegionRPC';
6
7
  import { batchQueryCdpSpaceInfo, batchQueryCdpSpaceInfoAsync } from '../../../common/apis/generated/web/batchQueryCdpSpaceInfo';
7
8
  import { chooseImage, chooseImageAsync } from '../../../common/apis/generated/web/chooseImage';
9
+ import choosePhoneContact from './choosePhoneContact';
10
+ import clearStorage from './clearStorage';
11
+ import confirm from './confirm';
12
+ import datePicker from './datePicker';
13
+ import downloadFile from './downloadFile';
8
14
  import { exitApp, exitAppAsync } from '../../../common/apis/generated/web/exitApp';
15
+ import { getAppToken, getAppTokenAsync } from '../../../common/apis/generated/web/getAppToken';
16
+ import getAuthCode from './getAuthCode';
9
17
  import { getBatteryInfo, getBatteryInfoAsync } from '../../../common/apis/generated/web/getBatteryInfo';
10
18
  import { getClipboard, getClipboardAsync } from '../../../common/apis/generated/web/getClipboard';
11
19
  import { getComponentAuth, getComponentAuthAsync } from '../../../common/apis/generated/web/getComponentAuth';
12
20
  import { getFileInfo, getFileInfoAsync } from '../../../common/apis/generated/web/getFileInfo';
13
21
  import { getImageInfo, getImageInfoAsync } from '../../../common/apis/generated/web/getImageInfo';
22
+ import getLocation from './getLocation';
23
+ import getNetworkType from './getNetworkType';
14
24
  import { getOpenUserInfo, getOpenUserInfoAsync } from '../../../common/apis/generated/web/getOpenUserInfo';
15
25
  import { getPaymentCode, getPaymentCodeAsync } from '../../../common/apis/generated/web/getPaymentCode';
26
+ import getPhoneNumber from './getPhoneNumber';
16
27
  import { getSavedFileInfo, getSavedFileInfoAsync } from '../../../common/apis/generated/web/getSavedFileInfo';
17
28
  import { getSavedFileList, getSavedFileListAsync } from '../../../common/apis/generated/web/getSavedFileList';
18
29
  import { getScreenBrightness, getScreenBrightnessAsync } from '../../../common/apis/generated/web/getScreenBrightness';
19
30
  import { getServerTime, getServerTimeAsync } from '../../../common/apis/generated/web/getServerTime';
20
31
  import { getSetting, getSettingAsync } from '../../../common/apis/generated/web/getSetting';
32
+ import getSiteInfo from './getSiteInfo';
21
33
  import { getStorage, getStorageAsync } from '../../../common/apis/generated/web/getStorage';
22
34
  import { getSystemInfo, getSystemInfoAsync } from '../../../common/apis/generated/web/getSystemInfo';
23
35
  import { hideKeyboard, hideKeyboardAsync } from '../../../common/apis/generated/web/hideKeyboard';
24
36
  import { hideLoading, hideLoadingAsync } from '../../../common/apis/generated/web/hideLoading';
37
+ import hideNavigationBarLoading from './hideNavigationBarLoading';
25
38
  import { hideToast, hideToastAsync } from '../../../common/apis/generated/web/hideToast';
26
39
  import { inquireQuote, inquireQuoteAsync } from '../../../common/apis/generated/web/inquireQuote';
27
40
  import { isInstalledApp, isInstalledAppAsync } from '../../../common/apis/generated/web/isInstalledApp';
28
41
  import { makePhoneCall, makePhoneCallAsync } from '../../../common/apis/generated/web/makePhoneCall';
42
+ import multiLevelSelect from './multiLevelSelect';
43
+ import navigateBack from './navigateBack';
29
44
  import { navigateBackMiniProgram, navigateBackMiniProgramAsync } from '../../../common/apis/generated/web/navigateBackMiniProgram';
45
+ import navigateTo from './navigateTo';
30
46
  import { navigateToMiniProgram, navigateToMiniProgramAsync } from '../../../common/apis/generated/web/navigateToMiniProgram';
31
47
  import { openDocument, openDocumentAsync } from '../../../common/apis/generated/web/openDocument';
32
48
  import { openSchemeWithBacking, openSchemeWithBackingAsync } from '../../../common/apis/generated/web/openSchemeWithBacking';
33
49
  import { openSetting, openSettingAsync } from '../../../common/apis/generated/web/openSetting';
50
+ import previewImage from './previewImage';
34
51
  import { prompt, promptAsync } from '../../../common/apis/generated/web/prompt';
52
+ import redirectTo from './redirectTo';
35
53
  import { regionFetchAllApps, regionFetchAllAppsAsync } from '../../../common/apis/generated/web/regionFetchAllApps';
36
54
  import { regionSearchAppsByKeywords, regionSearchAppsByKeywordsAsync } from '../../../common/apis/generated/web/regionSearchAppsByKeywords';
37
55
  import { removeSavedFile, removeSavedFileAsync } from '../../../common/apis/generated/web/removeSavedFile';
56
+ import removeStorage from './removeStorage';
38
57
  import { request, requestAsync } from '../../../common/apis/generated/web/request';
39
58
  import { rpc, rpcAsync } from '../../../common/apis/generated/web/rpc';
40
59
  import { saveFile, saveFileAsync } from '../../../common/apis/generated/web/saveFile';
@@ -45,67 +64,116 @@ import { setKeepScreenOn, setKeepScreenOnAsync } from '../../../common/apis/gene
45
64
  import { setNavigationBar, setNavigationBarAsync } from '../../../common/apis/generated/web/setNavigationBar';
46
65
  import { setScreenBrightness, setScreenBrightnessAsync } from '../../../common/apis/generated/web/setScreenBrightness';
47
66
  import { setStorage, setStorageAsync } from '../../../common/apis/generated/web/setStorage';
67
+ import showActionSheet from './showActionSheet';
68
+ import showAuthGuide from './showAuthGuide';
48
69
  import { showLoading, showLoadingAsync } from '../../../common/apis/generated/web/showLoading';
70
+ import showNavigationBarLoading from './showNavigationBarLoading';
71
+ import showToast from './showToast';
49
72
  import { signContract, signContractAsync } from '../../../common/apis/generated/web/signContract';
50
73
  import { startApp, startAppAsync } from '../../../common/apis/generated/web/startApp';
51
74
  import { startBizService, startBizServiceAsync } from '../../../common/apis/generated/web/startBizService';
52
75
  import { thirdPartyAuthForAc, thirdPartyAuthForAcAsync } from '../../../common/apis/generated/web/thirdPartyAuthForAc';
53
76
  import { tradePay, tradePayAsync } from '../../../common/apis/generated/web/tradePay';
54
77
  import { uploadApdidToken, uploadApdidTokenAsync } from '../../../common/apis/generated/web/uploadApdidToken';
78
+ import uploadFile from './uploadFile';
55
79
  import { vibrate, vibrateAsync } from '../../../common/apis/generated/web/vibrate';
56
80
  import { writeBLECharacteristicValue, writeBLECharacteristicValueAsync } from '../../../common/apis/generated/web/writeBLECharacteristicValue';
57
- import alert from './alert';
58
- import choosePhoneContact from './choosePhoneContact';
59
- import clearStorage from './clearStorage';
60
- import confirm from './confirm';
61
- import datePicker from './datePicker';
62
- import downloadFile from './downloadFile';
63
- import getAuthCode from './getAuthCode';
64
- import getLocation from './getLocation';
65
- import getNetworkType from './getNetworkType';
66
- import getPhoneNumber from './getPhoneNumber';
67
- import getSiteInfo from './getSiteInfo';
68
- import hideNavigationBarLoading from './hideNavigationBarLoading';
69
- import multiLevelSelect from './multiLevelSelect';
70
- import navigateBack from './navigateBack';
71
- import navigateTo from './navigateTo';
72
- import previewImage from './previewImage';
73
- import redirectTo from './redirectTo';
74
- import removeStorage from './removeStorage';
75
- import showActionSheet from './showActionSheet';
76
- import showAuthGuide from './showAuthGuide';
77
- import showNavigationBarLoading from './showNavigationBarLoading';
78
- import showToast from './showToast';
79
- import uploadFile from './uploadFile';
80
81
  declare const _default: {
81
82
  addFatigueAction: (args?: import("@hylid/types").AddFatigueActionArgs | undefined) => void;
83
+ addFatigueActionAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
82
84
  addPhoneContact: (args: Partial<AddPhoneContactArgs>) => void;
85
+ addPhoneContactAsync: (args?: Partial<AddPhoneContactArgs> | undefined) => Promise<{
86
+ success: true;
87
+ }>;
88
+ alert: (args?: AlertArgs | undefined) => void;
83
89
  apDisableJSAPI: (args?: any) => void;
90
+ apDisableJSAPIAsync: (args?: any) => Promise<unknown>;
84
91
  appxrpc: (args?: {
85
92
  reqeustData: any;
86
93
  } | undefined) => void;
94
+ appxrpcAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
87
95
  APRegionRPC: (args?: any) => void;
96
+ APRegionRPCAsync: (args?: any) => Promise<unknown>;
88
97
  batchQueryCdpSpaceInfo: (args?: any) => void;
98
+ batchQueryCdpSpaceInfoAsync: (args?: any) => Promise<unknown>;
89
99
  chooseImage: (args: ChooseImageArgs) => void;
100
+ chooseImageAsync: (args?: ChooseImageArgs | undefined) => Promise<{
101
+ apFilePaths: string[];
102
+ }>;
103
+ choosePhoneContact: (args: ChoosePhoneContactArgs) => void;
104
+ clearStorage: (args?: AsyncCallback<any> | undefined) => void;
105
+ confirm: (args: ConfirmArgs) => void;
106
+ datePicker: (args?: DatePickerArgs | undefined) => void;
107
+ downloadFile: (args: DownloadFileArgs) => void;
90
108
  exitApp: (args?: any) => void;
109
+ exitAppAsync: (args?: any) => Promise<unknown>;
110
+ getAppToken: (args?: any) => void;
111
+ getAppTokenAsync: (args?: any) => Promise<unknown>;
112
+ getAuthCode: (args: {
113
+ scopes: string | string[];
114
+ appId?: string | undefined;
115
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
91
116
  getBatteryInfo: (args?: AsyncCallback<{
92
117
  level: number;
93
118
  isCharging: boolean;
94
119
  }> | undefined) => void;
120
+ getBatteryInfoAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
95
121
  getClipboard: (args: GetClipboardArgs) => void;
122
+ getClipboardAsync: (args?: GetClipboardArgs | undefined) => Promise<{
123
+ text: string;
124
+ }>;
96
125
  getComponentAuth: (args?: any) => void;
126
+ getComponentAuthAsync: (args?: any) => Promise<unknown>;
97
127
  getFileInfo: (args: GetFileArgs) => void;
128
+ getFileInfoAsync: (args?: GetFileArgs | undefined) => Promise<{
129
+ size: number;
130
+ digest: string;
131
+ }>;
98
132
  getImageInfo: (args: GetImageInfo) => void;
133
+ getImageInfoAsync: (args?: GetImageInfo | undefined) => Promise<GetImageInfoCallbackValue>;
134
+ getLocation: (args: {
135
+ bizType?: string | undefined;
136
+ requestType?: number | undefined;
137
+ timeout?: number | undefined;
138
+ horizontalAccuracy?: number | undefined;
139
+ } & GetLocationArgs) => void;
140
+ getNetworkType: (args: GetNetworkTypeArgs) => void;
99
141
  getOpenUserInfo: (args: GetOpenUserInfoArgs) => void;
142
+ getOpenUserInfoAsync: (args?: GetOpenUserInfoArgs | undefined) => Promise<{
143
+ response: string;
144
+ }>;
100
145
  getPaymentCode: (args?: any) => void;
146
+ getPaymentCodeAsync: (args?: any) => Promise<unknown>;
147
+ getPhoneNumber: (args?: any) => void;
101
148
  getSavedFileInfo: (args: GetSavedFileInfo) => void;
149
+ getSavedFileInfoAsync: (args?: GetSavedFileInfo | undefined) => Promise<{
150
+ size: number;
151
+ createTime: number;
152
+ }>;
102
153
  getSavedFileList: (args: GetSavedFileListArgs) => void;
154
+ getSavedFileListAsync: (args?: GetSavedFileListArgs | undefined) => Promise<{
155
+ fileList: {
156
+ size: number;
157
+ createTime: number;
158
+ apFilePath: string;
159
+ }[];
160
+ }>;
103
161
  getScreenBrightness: (args: AsyncCallback<{
104
162
  brightness: number;
105
163
  }>) => void;
164
+ getScreenBrightnessAsync: (args?: AsyncCallback<{
165
+ brightness: number;
166
+ }> | undefined) => Promise<{
167
+ brightness: number;
168
+ }>;
106
169
  getServerTime: (args: AsyncCallback<{
107
170
  time: number;
108
171
  }>) => void;
172
+ getServerTimeAsync: (args?: AsyncCallback<{
173
+ time: number;
174
+ }> | undefined) => Promise<{
175
+ time: number;
176
+ }>;
109
177
  getSetting: (args?: AsyncCallback<{
110
178
  authSetting: {
111
179
  camera: boolean;
@@ -115,23 +183,46 @@ declare const _default: {
115
183
  phoneNumber: boolean;
116
184
  };
117
185
  }> | undefined) => void;
186
+ getSettingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
187
+ getSiteInfo: typeof getSiteInfo;
118
188
  getStorage: (args: GetStorage) => void;
189
+ getStorageAsync: (args?: GetStorage | undefined) => Promise<{
190
+ data: any;
191
+ }>;
119
192
  getSystemInfo: (args: GetSystemInfoArgs) => void;
193
+ getSystemInfoAsync: (args?: GetSystemInfoArgs | undefined) => Promise<GetSystemInfoCallbackValue>;
120
194
  hideKeyboard: () => void;
195
+ hideKeyboardAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
121
196
  hideLoading: (args?: HideLoadingArgs | undefined) => void;
197
+ hideLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
198
+ hideNavigationBarLoading: () => void;
122
199
  hideToast: (args?: AsyncCallback<any> | undefined) => void;
200
+ hideToastAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
123
201
  inquireQuote: (args?: any) => void;
202
+ inquireQuoteAsync: (args?: any) => Promise<unknown>;
124
203
  isInstalledApp: (args?: any) => void;
204
+ isInstalledAppAsync: (args?: any) => Promise<unknown>;
125
205
  makePhoneCall: (args: {
126
206
  number: string;
127
207
  }) => void;
208
+ makePhoneCallAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
209
+ multiLevelSelect: (args: MultiLevelSelectArgs) => void;
210
+ navigateBack: (args: NavigateBackArgs) => void;
128
211
  navigateBackMiniProgram: (args: NavigateBackMiniProgramArgs) => void;
212
+ navigateBackMiniProgramAsync: (args?: NavigateBackMiniProgramArgs | undefined) => Promise<undefined>;
213
+ navigateTo: (args: NavigateToArgs) => void;
129
214
  navigateToMiniProgram: (args: NavigateToMiniProgramArgs) => void;
215
+ navigateToMiniProgramAsync: (args?: NavigateToMiniProgramArgs | undefined) => Promise<undefined>;
130
216
  openDocument: (args: {
131
217
  filePath: string;
132
218
  fileType: string;
133
219
  } & AsyncCallback<any>) => void;
220
+ openDocumentAsync: (args?: ({
221
+ filePath: string;
222
+ fileType: string;
223
+ } & AsyncCallback<any>) | undefined) => Promise<any>;
134
224
  openSchemeWithBacking: (args?: any) => void;
225
+ openSchemeWithBackingAsync: (args?: any) => Promise<unknown>;
135
226
  openSetting: (args?: AsyncCallback<{
136
227
  authSetting: {
137
228
  camera: any;
@@ -141,10 +232,18 @@ declare const _default: {
141
232
  phoneNumber: any;
142
233
  };
143
234
  }> | undefined) => void;
235
+ openSettingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
236
+ previewImage: (args: PreviewImageArgs) => void;
144
237
  prompt: (args: PromptArgs) => void;
238
+ promptAsync: (args?: PromptArgs | undefined) => Promise<PromptCallbackValue>;
239
+ redirectTo: (args: RedirectToArgs) => void;
145
240
  regionFetchAllApps: (args?: any) => void;
241
+ regionFetchAllAppsAsync: (args?: any) => Promise<unknown>;
146
242
  regionSearchAppsByKeywords: (args?: any) => void;
243
+ regionSearchAppsByKeywordsAsync: (args?: any) => Promise<unknown>;
147
244
  removeSavedFile: (args: RemoveSavedFileArgs) => void;
245
+ removeSavedFileAsync: (args?: RemoveSavedFileArgs | undefined) => Promise<void>;
246
+ removeStorage: (args: RemoveStorageArgs) => void;
148
247
  request: (args: {
149
248
  url: string;
150
249
  headers?: {
@@ -159,53 +258,53 @@ declare const _default: {
159
258
  status: number;
160
259
  headers: any;
161
260
  }>) => void;
261
+ requestAsync: (args?: ({
262
+ url: string;
263
+ headers?: {
264
+ [key: string]: string;
265
+ } | undefined;
266
+ method?: "GET" | "POST" | undefined;
267
+ data?: any;
268
+ timeout?: number | undefined;
269
+ dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
270
+ } & import("@hylid/types").AsyncCallback<{
271
+ data: any;
272
+ status: number;
273
+ headers: any;
274
+ }>) | undefined) => Promise<{
275
+ data: any;
276
+ status: number;
277
+ headers: any;
278
+ }>;
162
279
  rpc: (args: import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
163
280
  headers: Record<string, string>;
164
281
  resData: object;
165
282
  }>) => void;
283
+ rpcAsync: (args?: (import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
284
+ headers: Record<string, string>;
285
+ resData: object;
286
+ }>) | undefined) => Promise<{
287
+ headers: Record<string, string>;
288
+ resData: object;
289
+ }>;
166
290
  saveFile: (args: SaveFileArgs) => void;
291
+ saveFileAsync: (args?: SaveFileArgs | undefined) => Promise<{
292
+ apFilePath: string;
293
+ }>;
167
294
  saveImage: (args: SaveImageArgs) => void;
295
+ saveImageAsync: (args?: SaveImageArgs | undefined) => Promise<undefined>;
168
296
  scan: (args: ScanArgs) => void;
297
+ scanAsync: (args?: ScanArgs | undefined) => Promise<ScanCallbackValue>;
169
298
  setClipboard: (args: SetClipboardArgs) => void;
299
+ setClipboardAsync: (args?: SetClipboardArgs | undefined) => Promise<undefined>;
170
300
  setKeepScreenOn: (args: SetKeepScreenOnArgs) => void;
301
+ setKeepScreenOnAsync: (args?: SetKeepScreenOnArgs | undefined) => Promise<undefined>;
171
302
  setNavigationBar: (args: SetNavigationBarArgs) => void;
303
+ setNavigationBarAsync: (args?: SetNavigationBarArgs | undefined) => Promise<undefined>;
172
304
  setScreenBrightness: (args: SetScreenBrightnessArgs) => void;
305
+ setScreenBrightnessAsync: (args?: SetScreenBrightnessArgs | undefined) => Promise<undefined>;
173
306
  setStorage: (args: SetStorage) => void;
174
- showLoading: (args?: ShowLoadingArgs | undefined) => void;
175
- signContract: (args: SignContractArgs) => void;
176
- startApp: (args?: any) => void;
177
- startBizService: (args?: any) => void;
178
- thirdPartyAuthForAc: (args?: any) => void;
179
- tradePay: (args: TradePayArgs) => void;
180
- uploadApdidToken: (args?: any) => void;
181
- vibrate: (args: AsyncCallback<void>) => void;
182
- writeBLECharacteristicValue: (args: WriteBLECharacteristicValueArgs) => void;
183
- alert: (args?: AlertArgs | undefined) => void;
184
- choosePhoneContact: (args: ChoosePhoneContactArgs) => void;
185
- clearStorage: (args?: AsyncCallback<any> | undefined) => void;
186
- confirm: (args: ConfirmArgs) => void;
187
- datePicker: (args?: DatePickerArgs | undefined) => void;
188
- downloadFile: (args: DownloadFileArgs) => void;
189
- getAuthCode: (args: {
190
- scopes: string | string[];
191
- appId?: string | undefined;
192
- } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
193
- getLocation: (args: {
194
- bizType?: string | undefined;
195
- requestType?: number | undefined;
196
- timeout?: number | undefined;
197
- horizontalAccuracy?: number | undefined;
198
- } & GetLocationArgs) => void;
199
- getNetworkType: (args: GetNetworkTypeArgs) => void;
200
- getPhoneNumber: (args?: any) => void;
201
- getSiteInfo: typeof getSiteInfo;
202
- hideNavigationBarLoading: () => void;
203
- multiLevelSelect: (args: MultiLevelSelectArgs) => void;
204
- navigateBack: (args: NavigateBackArgs) => void;
205
- navigateTo: (args: NavigateToArgs) => void;
206
- previewImage: (args: PreviewImageArgs) => void;
207
- redirectTo: (args: RedirectToArgs) => void;
208
- removeStorage: (args: RemoveStorageArgs) => void;
307
+ setStorageAsync: (args?: SetStorage | undefined) => Promise<undefined>;
209
308
  showActionSheet: (args: ShowActionSheetArgs) => void;
210
309
  showAuthGuide: (args: import("@hylid/types").AsyncCallback<{
211
310
  shown: boolean;
@@ -213,10 +312,32 @@ declare const _default: {
213
312
  authType: string;
214
313
  bizType?: string | undefined;
215
314
  }) => void;
315
+ showLoading: (args?: ShowLoadingArgs | undefined) => void;
316
+ showLoadingAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
216
317
  showNavigationBarLoading: () => void;
217
318
  showToast: (args?: ShowToastArgs | undefined) => void;
319
+ signContract: (args: SignContractArgs) => void;
320
+ signContractAsync: (args?: SignContractArgs | undefined) => Promise<{
321
+ authState: string;
322
+ authCode: string;
323
+ }>;
324
+ startApp: (args?: any) => void;
325
+ startAppAsync: (args?: any) => Promise<unknown>;
326
+ startBizService: (args?: any) => void;
327
+ startBizServiceAsync: (args?: any) => Promise<unknown>;
328
+ thirdPartyAuthForAc: (args?: any) => void;
329
+ thirdPartyAuthForAcAsync: (args?: any) => Promise<unknown>;
330
+ tradePay: (args: TradePayArgs) => void;
331
+ tradePayAsync: (args?: TradePayArgs | undefined) => Promise<{
332
+ resultCode: string;
333
+ }>;
334
+ uploadApdidToken: (args?: any) => void;
335
+ uploadApdidTokenAsync: (args?: any) => Promise<unknown>;
218
336
  uploadFile: (args: UploadFileArgs) => void;
337
+ vibrate: (args: AsyncCallback<void>) => void;
338
+ vibrateAsync: (args?: AsyncCallback<void> | undefined) => Promise<void>;
339
+ writeBLECharacteristicValue: (args: WriteBLECharacteristicValueArgs) => void;
340
+ writeBLECharacteristicValueAsync: (args?: WriteBLECharacteristicValueArgs | undefined) => Promise<any>;
219
341
  };
220
342
  export default _default;
221
- export { addFatigueAction, addPhoneContact, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, exitApp, getBatteryInfo, getClipboard, getComponentAuth, getFileInfo, getImageInfo, getOpenUserInfo, getPaymentCode, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getStorage, getSystemInfo, hideKeyboard, hideLoading, hideToast, inquireQuote, isInstalledApp, makePhoneCall, navigateBackMiniProgram, navigateToMiniProgram, openDocument, openSchemeWithBacking, openSetting, prompt, regionFetchAllApps, regionSearchAppsByKeywords, removeSavedFile, request, rpc, saveFile, saveImage, scan, setClipboard, setKeepScreenOn, setNavigationBar, setScreenBrightness, setStorage, showLoading, signContract, startApp, startBizService, thirdPartyAuthForAc, tradePay, uploadApdidToken, vibrate, writeBLECharacteristicValue, alert, choosePhoneContact, clearStorage, confirm, datePicker, downloadFile, getAuthCode, getLocation, getNetworkType, getPhoneNumber, getSiteInfo, hideNavigationBarLoading, multiLevelSelect, navigateBack, navigateTo, previewImage, redirectTo, removeStorage, showActionSheet, showAuthGuide, showNavigationBarLoading, showToast, uploadFile, };
222
- export { addFatigueActionAsync, addPhoneContactAsync, apDisableJSAPIAsync, appxrpcAsync, APRegionRPCAsync, batchQueryCdpSpaceInfoAsync, chooseImageAsync, exitAppAsync, getBatteryInfoAsync, getClipboardAsync, getComponentAuthAsync, getFileInfoAsync, getImageInfoAsync, getOpenUserInfoAsync, getPaymentCodeAsync, getSavedFileInfoAsync, getSavedFileListAsync, getScreenBrightnessAsync, getServerTimeAsync, getSettingAsync, getStorageAsync, getSystemInfoAsync, hideKeyboardAsync, hideLoadingAsync, hideToastAsync, inquireQuoteAsync, isInstalledAppAsync, makePhoneCallAsync, navigateBackMiniProgramAsync, navigateToMiniProgramAsync, openDocumentAsync, openSchemeWithBackingAsync, openSettingAsync, promptAsync, regionFetchAllAppsAsync, regionSearchAppsByKeywordsAsync, removeSavedFileAsync, requestAsync, rpcAsync, saveFileAsync, saveImageAsync, scanAsync, setClipboardAsync, setKeepScreenOnAsync, setNavigationBarAsync, setScreenBrightnessAsync, setStorageAsync, showLoadingAsync, signContractAsync, startAppAsync, startBizServiceAsync, thirdPartyAuthForAcAsync, tradePayAsync, uploadApdidTokenAsync, vibrateAsync, writeBLECharacteristicValueAsync, };
343
+ export { addFatigueAction, addFatigueActionAsync, addPhoneContact, addPhoneContactAsync, alert, apDisableJSAPI, apDisableJSAPIAsync, appxrpc, appxrpcAsync, APRegionRPC, APRegionRPCAsync, batchQueryCdpSpaceInfo, batchQueryCdpSpaceInfoAsync, chooseImage, chooseImageAsync, choosePhoneContact, clearStorage, confirm, datePicker, downloadFile, exitApp, exitAppAsync, getAppToken, getAppTokenAsync, getAuthCode, getBatteryInfo, getBatteryInfoAsync, getClipboard, getClipboardAsync, getComponentAuth, getComponentAuthAsync, getFileInfo, getFileInfoAsync, getImageInfo, getImageInfoAsync, getLocation, getNetworkType, getOpenUserInfo, getOpenUserInfoAsync, getPaymentCode, getPaymentCodeAsync, getPhoneNumber, getSavedFileInfo, getSavedFileInfoAsync, getSavedFileList, getSavedFileListAsync, getScreenBrightness, getScreenBrightnessAsync, getServerTime, getServerTimeAsync, getSetting, getSettingAsync, getSiteInfo, getStorage, getStorageAsync, getSystemInfo, getSystemInfoAsync, hideKeyboard, hideKeyboardAsync, hideLoading, hideLoadingAsync, hideNavigationBarLoading, hideToast, hideToastAsync, inquireQuote, inquireQuoteAsync, isInstalledApp, isInstalledAppAsync, makePhoneCall, makePhoneCallAsync, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateBackMiniProgramAsync, navigateTo, navigateToMiniProgram, navigateToMiniProgramAsync, openDocument, openDocumentAsync, openSchemeWithBacking, openSchemeWithBackingAsync, openSetting, openSettingAsync, previewImage, prompt, promptAsync, redirectTo, regionFetchAllApps, regionFetchAllAppsAsync, regionSearchAppsByKeywords, regionSearchAppsByKeywordsAsync, removeSavedFile, removeSavedFileAsync, removeStorage, request, requestAsync, rpc, rpcAsync, saveFile, saveFileAsync, saveImage, saveImageAsync, scan, scanAsync, setClipboard, setClipboardAsync, setKeepScreenOn, setKeepScreenOnAsync, setNavigationBar, setNavigationBarAsync, setScreenBrightness, setScreenBrightnessAsync, setStorage, setStorageAsync, showActionSheet, showAuthGuide, showLoading, showLoadingAsync, showNavigationBarLoading, showToast, signContract, signContractAsync, startApp, startAppAsync, startBizService, startBizServiceAsync, thirdPartyAuthForAc, thirdPartyAuthForAcAsync, tradePay, tradePayAsync, uploadApdidToken, uploadApdidTokenAsync, uploadFile, vibrate, vibrateAsync, writeBLECharacteristicValue, writeBLECharacteristicValueAsync, };