hylid-bridge 4.0.0-alpha.5 → 4.0.0-alpha.7

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 (47) hide show
  1. package/lib/bridges.d.ts +30 -14
  2. package/lib/clients/mp/alipay/index.d.ts +3 -3
  3. package/lib/clients/mp/alipayhk/index.d.ts +2 -2
  4. package/lib/clients/mp/chope/index.d.ts +2 -2
  5. package/lib/clients/mp/dana/index.d.ts +2 -2
  6. package/lib/clients/mp/demo/index.d.ts +4 -4
  7. package/lib/clients/mp/gcash/index.d.ts +2 -2
  8. package/lib/clients/mp/tngd/index.d.ts +2 -2
  9. package/lib/clients/mp/truemoney/index.d.ts +2 -2
  10. package/lib/clients/mp_web/alipay/index.d.ts +6 -6
  11. package/lib/clients/mp_web/alipayhk/index.d.ts +7 -7
  12. package/lib/clients/mp_web/chope/index.d.ts +4 -4
  13. package/lib/clients/mp_web/dana/index.d.ts +7 -7
  14. package/lib/clients/mp_web/demo/index.d.ts +6 -6
  15. package/lib/clients/mp_web/gcash/index.d.ts +7 -7
  16. package/lib/clients/mp_web/mpay/index.d.ts +8 -8
  17. package/lib/clients/mp_web/tngd/index.d.ts +7 -7
  18. package/lib/clients/mp_web/toss/index.d.ts +8 -8
  19. package/lib/clients/mp_web/truemoney/index.d.ts +7 -7
  20. package/lib/clients/web/alipay/index.d.ts +16 -13
  21. package/lib/clients/web/demo/index.d.ts +3 -3
  22. package/lib/clients/web/h5/index.d.ts +2 -2
  23. package/lib/common/apis/generated/mp/getAuthCode.d.ts +2 -2
  24. package/lib/common/apis/generated/mp/request.d.ts +2 -2
  25. package/lib/common/apis/generated/mp/rpc.d.ts +2 -2
  26. package/lib/common/apis/generated/mp/setOptionMenu.d.ts +1 -1
  27. package/lib/common/apis/generated/mp_web/createWithoutAuthRpc.d.ts +2 -2
  28. package/lib/common/apis/generated/mp_web/getAuthCode.d.ts +2 -2
  29. package/lib/common/apis/generated/mp_web/request.d.ts +2 -2
  30. package/lib/common/apis/generated/mp_web/rpc.d.ts +2 -2
  31. package/lib/common/apis/generated/mp_web/setOptionMenu.d.ts +1 -1
  32. package/lib/common/apis/generated/mp_web/setTransparentTitle.d.ts +2 -2
  33. package/lib/common/apis/generated/web/chooseDistrict.d.ts +2 -2
  34. package/lib/common/apis/generated/web/easyShare.d.ts +21 -2
  35. package/lib/common/apis/generated/web/getMainSelectedCity.d.ts +2 -2
  36. package/lib/common/apis/generated/web/homeCanAddAppToMyApps.d.ts +2 -2
  37. package/lib/common/apis/generated/web/rpc.d.ts +2 -2
  38. package/lib/common/apis/generated/web/setTransparentTitle.d.ts +2 -2
  39. package/lib/dsl.d.ts +3 -3
  40. package/lib/internal/apis/custom/web/addNotifyListener.d.ts +2 -2
  41. package/lib/internal/apis/custom/web/addNotifyListener.js +3 -3
  42. package/lib/internal/utils/network/index.d.ts +1 -1
  43. package/lib/umd/index.js +1 -1
  44. package/lib/umd/mp_web_mpay.js +1 -1
  45. package/lib/umd/mp_web_toss.js +1 -1
  46. package/lib/umd/web_alipay.js +1 -1
  47. package/package.json +6 -6
package/lib/bridges.d.ts CHANGED
@@ -452,7 +452,7 @@ export declare const getAuthCode: PickMPAttr<'getAuthCode'>;
452
452
  export declare const getAuthCodeAsync: (args?: ({
453
453
  scopes: string | string[];
454
454
  appId?: string | undefined;
455
- } & AsyncCallback<GetAuthCodeCallbackValue>) | undefined) => Promise<GetAuthCodeCallbackValue>;
455
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) | undefined) => Promise<GetAuthCodeCallbackValue>;
456
456
  /**
457
457
  * @doc https://miniprogram.alipay.com/docs/miniprogram/mpdev/API_Device_Battery_getBatteryInfo
458
458
  * @support
@@ -1897,7 +1897,7 @@ export declare const requestAsync: (args?: ({
1897
1897
  data?: any;
1898
1898
  timeout?: number | undefined;
1899
1899
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
1900
- } & AsyncCallback<{
1900
+ } & import("@hylid/types").AsyncCallback<{
1901
1901
  data: any;
1902
1902
  status: number;
1903
1903
  headers: any;
@@ -1923,7 +1923,7 @@ export declare const rpc: PickMPAttr<'rpc'>;
1923
1923
  * | mp_web | alipay,demo |
1924
1924
  * | web | alipay,demo,h5 |
1925
1925
  */
1926
- export declare const rpcAsync: (args?: (import("@hylid/types").IRPCArgs & AsyncCallback<{
1926
+ export declare const rpcAsync: (args?: (import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
1927
1927
  headers: Record<string, string>;
1928
1928
  resData: object;
1929
1929
  }>) | undefined) => Promise<{
@@ -2796,7 +2796,7 @@ export declare const rpcWithAuth: PickMPAttr<'rpcWithAuth'>;
2796
2796
  * | mp | |
2797
2797
  * | mp_web | toss,mpay |
2798
2798
  */
2799
- export declare const rpcWithAuthAsync: (args?: (import("@hylid/types").IRPCArgs & AsyncCallback<{
2799
+ export declare const rpcWithAuthAsync: (args?: (import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
2800
2800
  headers: Record<string, string>;
2801
2801
  resData: object;
2802
2802
  }>) | undefined) => Promise<{
@@ -2818,7 +2818,7 @@ export declare const getAppId: PickMPAttr<'getAppId'>;
2818
2818
  * | mp | |
2819
2819
  * | mp_web | alipay,alipayhk,chope,dana,demo,gcash,mpay,tngd,truemoney,toss,mpay |
2820
2820
  */
2821
- export declare const getAppIdAsync: (args?: AsyncCallback<{
2821
+ export declare const getAppIdAsync: (args?: import("@hylid/types").AsyncCallback<{
2822
2822
  appId: string;
2823
2823
  }> | undefined) => Promise<{
2824
2824
  appId: string;
@@ -2856,7 +2856,7 @@ export declare const getSDKVersion: PickMPAttr<'getSDKVersion'>;
2856
2856
  * | mp | |
2857
2857
  * | mp_web | alipay,alipayhk,chope,dana,demo,gcash,mpay,tngd,truemoney,toss,mpay |
2858
2858
  */
2859
- export declare const getSDKVersionAsync: (args?: AsyncCallback<string> | undefined) => Promise<string>;
2859
+ export declare const getSDKVersionAsync: (args?: import("@hylid/types").AsyncCallback<string> | undefined) => Promise<string>;
2860
2860
  /**
2861
2861
  * @support
2862
2862
  * | Platform | Apps |
@@ -2883,7 +2883,7 @@ export declare const rpcWithAuthAPlus: PickMPAttr<'rpcWithAuthAPlus'>;
2883
2883
  * | mp_web | |
2884
2884
  * | web | alipay |
2885
2885
  */
2886
- export declare const rpcWithAuthAPlusAsync: (args?: (import("@hylid/types").IRPCArgs & AsyncCallback<{
2886
+ export declare const rpcWithAuthAPlusAsync: (args?: (import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
2887
2887
  headers: Record<string, string>;
2888
2888
  resData: object;
2889
2889
  }>) | undefined) => Promise<{
@@ -2907,7 +2907,23 @@ export declare const easyShare: PickMPAttr<'easyShare'>;
2907
2907
  * | mp_web | |
2908
2908
  * | web | alipay |
2909
2909
  */
2910
- export declare const easyShareAsync: (args?: import("@hylid/call/lib/promisify").Options | undefined) => Promise<any>;
2910
+ export declare const easyShareAsync: (args?: ({
2911
+ bizType: string;
2912
+ title: string;
2913
+ desc: string;
2914
+ searchTips?: string | undefined;
2915
+ iconUrl?: string | undefined;
2916
+ icon?: string | undefined;
2917
+ imageUrl?: string | undefined;
2918
+ image?: string | undefined;
2919
+ url: string;
2920
+ } & import("@hylid/types").AsyncCallback<{
2921
+ succeed: boolean;
2922
+ channelName: string;
2923
+ }>) | undefined) => Promise<{
2924
+ succeed: boolean;
2925
+ channelName: string;
2926
+ }>;
2911
2927
  /**
2912
2928
  * @support
2913
2929
  * | Platform | Apps |
@@ -2945,7 +2961,7 @@ export declare const homeCanAddAppToMyApps: PickMPAttr<'homeCanAddAppToMyApps'>;
2945
2961
  */
2946
2962
  export declare const homeCanAddAppToMyAppsAsync: (args?: ({
2947
2963
  appId: string;
2948
- } & AsyncCallback<{
2964
+ } & import("@hylid/types").AsyncCallback<{
2949
2965
  canAddAppToMyApps: boolean;
2950
2966
  }>) | undefined) => Promise<{
2951
2967
  canAddAppToMyApps: boolean;
@@ -2988,8 +3004,8 @@ export declare const addNotifyListener: PickMPAttr<'addNotifyListener'>;
2988
3004
  export declare const addNotifyListenerAsync: (args?: ({
2989
3005
  name: string;
2990
3006
  keep?: boolean | undefined;
2991
- callback: (res: any) => void;
2992
- } & AsyncCallback<void>) | undefined) => Promise<void>;
3007
+ callback?: ((res: any) => void) | undefined;
3008
+ } & import("@hylid/types").AsyncCallback<any>) | undefined) => Promise<any>;
2993
3009
  /**
2994
3010
  * @support
2995
3011
  * | Platform | Apps |
@@ -3025,7 +3041,7 @@ export declare const getMainSelectedCity: PickMPAttr<'getMainSelectedCity'>;
3025
3041
  * | mp_web | |
3026
3042
  * | web | alipay |
3027
3043
  */
3028
- export declare const getMainSelectedCityAsync: (args?: AsyncCallback<{
3044
+ export declare const getMainSelectedCityAsync: (args?: import("@hylid/types").AsyncCallback<{
3029
3045
  fullName: string;
3030
3046
  enName: string;
3031
3047
  name: string;
@@ -3072,7 +3088,7 @@ export declare const chooseDistrictAsync: (args?: ({
3072
3088
  headList?: import("@hylid/types").HeadModel[] | undefined;
3073
3089
  normalList?: import("@hylid/types").ItemModel[] | undefined;
3074
3090
  }[] | undefined;
3075
- } & AsyncCallback<{
3091
+ } & import("@hylid/types").AsyncCallback<{
3076
3092
  name: string;
3077
3093
  adCode: string;
3078
3094
  ext: string;
@@ -3116,7 +3132,7 @@ export declare const setTransparentTitle: PickMPAttr<'setTransparentTitle'>;
3116
3132
  * | mp_web | alipayhk,dana,gcash,mpay,truemoney,tngd,toss |
3117
3133
  * | web | alipay |
3118
3134
  */
3119
- export declare const setTransparentTitleAsync: (args?: AsyncCallback<{
3135
+ export declare const setTransparentTitleAsync: (args?: import("@hylid/types").AsyncCallback<{
3120
3136
  transparentTitle: "none" | "auto" | "always" | "custom";
3121
3137
  }> | undefined) => Promise<{
3122
3138
  transparentTitle: "none" | "auto" | "always" | "custom";
@@ -151,7 +151,7 @@ declare const _default: {
151
151
  getAuthCode: (args: {
152
152
  scopes: string | string[];
153
153
  appId?: string | undefined;
154
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
154
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
155
155
  getBatteryInfo: (args?: AsyncCallback<{
156
156
  level: number;
157
157
  isCharging: boolean;
@@ -330,12 +330,12 @@ declare const _default: {
330
330
  data?: any;
331
331
  timeout?: number | undefined;
332
332
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
333
- } & AsyncCallback<{
333
+ } & import("@hylid/types").AsyncCallback<{
334
334
  data: any;
335
335
  status: number;
336
336
  headers: any;
337
337
  }>) => void;
338
- rpc: (args: import("@hylid/types").IRPCArgs & AsyncCallback<{
338
+ rpc: (args: import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
339
339
  headers: Record<string, string>;
340
340
  resData: object;
341
341
  }>) => void;
@@ -147,7 +147,7 @@ declare const _default: {
147
147
  getAuthCode: (args: {
148
148
  scopes: string | string[];
149
149
  appId?: string | undefined;
150
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
150
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
151
151
  getBatteryInfo: (args?: AsyncCallback<{
152
152
  level: number;
153
153
  isCharging: boolean;
@@ -326,7 +326,7 @@ declare const _default: {
326
326
  data?: any;
327
327
  timeout?: number | undefined;
328
328
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
329
- } & AsyncCallback<{
329
+ } & import("@hylid/types").AsyncCallback<{
330
330
  data: any;
331
331
  status: number;
332
332
  headers: any;
@@ -147,7 +147,7 @@ declare const _default: {
147
147
  getAuthCode: (args: {
148
148
  scopes: string | string[];
149
149
  appId?: string | undefined;
150
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
150
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
151
151
  getBatteryInfo: (args?: AsyncCallback<{
152
152
  level: number;
153
153
  isCharging: boolean;
@@ -326,7 +326,7 @@ declare const _default: {
326
326
  data?: any;
327
327
  timeout?: number | undefined;
328
328
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
329
- } & AsyncCallback<{
329
+ } & import("@hylid/types").AsyncCallback<{
330
330
  data: any;
331
331
  status: number;
332
332
  headers: any;
@@ -147,7 +147,7 @@ declare const _default: {
147
147
  getAuthCode: (args: {
148
148
  scopes: string | string[];
149
149
  appId?: string | undefined;
150
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
150
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
151
151
  getBatteryInfo: (args?: AsyncCallback<{
152
152
  level: number;
153
153
  isCharging: boolean;
@@ -326,7 +326,7 @@ declare const _default: {
326
326
  data?: any;
327
327
  timeout?: number | undefined;
328
328
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
329
- } & AsyncCallback<{
329
+ } & import("@hylid/types").AsyncCallback<{
330
330
  data: any;
331
331
  status: number;
332
332
  headers: any;
@@ -182,7 +182,7 @@ declare const _default: {
182
182
  getAuthCode: (args: {
183
183
  scopes: string | string[];
184
184
  appId?: string | undefined;
185
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
185
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
186
186
  getBatteryInfo: (args?: AsyncCallback<{
187
187
  level: number;
188
188
  isCharging: boolean;
@@ -371,12 +371,12 @@ declare const _default: {
371
371
  data?: any;
372
372
  timeout?: number | undefined;
373
373
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
374
- } & AsyncCallback<{
374
+ } & import("@hylid/types").AsyncCallback<{
375
375
  data: any;
376
376
  status: number;
377
377
  headers: any;
378
378
  }>) => void;
379
- rpc: (args: import("@hylid/types").IRPCArgs & AsyncCallback<{
379
+ rpc: (args: import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
380
380
  headers: Record<string, string>;
381
381
  resData: object;
382
382
  }>) => void;
@@ -391,7 +391,7 @@ declare const _default: {
391
391
  setClipboard: (args: SetClipboardArgs) => void;
392
392
  setKeepScreenOn: (args: SetKeepScreenOnArgs) => void;
393
393
  setNavigationBar: (args: SetNavigationBarArgs) => void;
394
- setOptionMenu: (args?: (import("@hylid/types").Common & AsyncCallback<any>) | undefined) => void;
394
+ setOptionMenu: (args?: (import("@hylid/types").Common & import("@hylid/types").AsyncCallback<any>) | undefined) => void;
395
395
  setScreenBrightness: (args: SetScreenBrightnessArgs) => void;
396
396
  setStorage: (args: SetStorage) => void;
397
397
  setStorageSync: (args: {
@@ -147,7 +147,7 @@ declare const _default: {
147
147
  getAuthCode: (args: {
148
148
  scopes: string | string[];
149
149
  appId?: string | undefined;
150
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
150
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
151
151
  getBatteryInfo: (args?: AsyncCallback<{
152
152
  level: number;
153
153
  isCharging: boolean;
@@ -326,7 +326,7 @@ declare const _default: {
326
326
  data?: any;
327
327
  timeout?: number | undefined;
328
328
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
329
- } & AsyncCallback<{
329
+ } & import("@hylid/types").AsyncCallback<{
330
330
  data: any;
331
331
  status: number;
332
332
  headers: any;
@@ -147,7 +147,7 @@ declare const _default: {
147
147
  getAuthCode: (args: {
148
148
  scopes: string | string[];
149
149
  appId?: string | undefined;
150
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
150
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
151
151
  getBatteryInfo: (args?: AsyncCallback<{
152
152
  level: number;
153
153
  isCharging: boolean;
@@ -326,7 +326,7 @@ declare const _default: {
326
326
  data?: any;
327
327
  timeout?: number | undefined;
328
328
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
329
- } & AsyncCallback<{
329
+ } & import("@hylid/types").AsyncCallback<{
330
330
  data: any;
331
331
  status: number;
332
332
  headers: any;
@@ -147,7 +147,7 @@ declare const _default: {
147
147
  getAuthCode: (args: {
148
148
  scopes: string | string[];
149
149
  appId?: string | undefined;
150
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
150
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
151
151
  getBatteryInfo: (args?: AsyncCallback<{
152
152
  level: number;
153
153
  isCharging: boolean;
@@ -326,7 +326,7 @@ declare const _default: {
326
326
  data?: any;
327
327
  timeout?: number | undefined;
328
328
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
329
- } & AsyncCallback<{
329
+ } & import("@hylid/types").AsyncCallback<{
330
330
  data: any;
331
331
  status: number;
332
332
  headers: any;
@@ -139,7 +139,7 @@ declare const _default: {
139
139
  getAuthCode: (args: {
140
140
  scopes: string | string[];
141
141
  appId?: string | undefined;
142
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
142
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
143
143
  getBatteryInfo: (args?: AsyncCallback<{
144
144
  level: number;
145
145
  isCharging: boolean;
@@ -310,12 +310,12 @@ declare const _default: {
310
310
  data?: any;
311
311
  timeout?: number | undefined;
312
312
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
313
- } & AsyncCallback<{
313
+ } & import("@hylid/types").AsyncCallback<{
314
314
  data: any;
315
315
  status: number;
316
316
  headers: any;
317
317
  }>) => void;
318
- rpc: (args: import("@hylid/types").IRPCArgs & AsyncCallback<{
318
+ rpc: (args: import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
319
319
  headers: Record<string, string>;
320
320
  resData: object;
321
321
  }>) => void;
@@ -330,7 +330,7 @@ declare const _default: {
330
330
  setClipboard: (args: SetClipboardArgs) => void;
331
331
  setKeepScreenOn: (args: SetKeepScreenOnArgs) => void;
332
332
  setNavigationBar: (args: SetNavigationBarArgs) => void;
333
- setOptionMenu: (args?: (import("@hylid/types").Common & AsyncCallback<any>) | undefined) => void;
333
+ setOptionMenu: (args?: (import("@hylid/types").Common & import("@hylid/types").AsyncCallback<any>) | undefined) => void;
334
334
  setScreenBrightness: (args: SetScreenBrightnessArgs) => void;
335
335
  setStorage: (args: SetStorage) => void;
336
336
  setTabBarStyle: (args: SetTabBarStyleArgs) => void;
@@ -353,11 +353,11 @@ declare const _default: {
353
353
  showSharePanel: (args?: any) => void;
354
354
  tradePay: (args: TradePayArgs) => void;
355
355
  getCurrentLanguage: () => string;
356
- getAppId: (args: AsyncCallback<{
356
+ getAppId: (args: import("@hylid/types").AsyncCallback<{
357
357
  appId: string;
358
358
  }>) => void;
359
359
  getCurrentPages: (args: import("@hylid/types").getCurrentPagesOptions) => void;
360
- getSDKVersion: (args: AsyncCallback<string>) => void;
360
+ getSDKVersion: (args: import("@hylid/types").AsyncCallback<string>) => void;
361
361
  };
362
362
  export default _default;
363
363
  export { addPhoneContact, alert, chooseImage, choosePhoneContact, clearStorage, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, datePicker, disconnectBLEDevice, downloadFile, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getLocation, getNetworkType, getOpenUserInfo, getPhoneNumber, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSiteInfo, getStorage, getSystemInfo, hideBackHome, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideToast, 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, openSetting, pageScrollTo, previewImage, prompt, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, request, rpc, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setOptionMenu, setScreenBrightness, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, crossPay, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, showSharePanel, tradePay, getCurrentLanguage, getAppId, getCurrentPages, getSDKVersion, };
@@ -149,7 +149,7 @@ declare const _default: {
149
149
  getAuthCode: (args: {
150
150
  scopes: string | string[];
151
151
  appId?: string | undefined;
152
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
152
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
153
153
  getBatteryInfo: (args?: AsyncCallback<{
154
154
  level: number;
155
155
  isCharging: boolean;
@@ -319,7 +319,7 @@ declare const _default: {
319
319
  data?: any;
320
320
  timeout?: number | undefined;
321
321
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
322
- } & AsyncCallback<{
322
+ } & import("@hylid/types").AsyncCallback<{
323
323
  data: any;
324
324
  status: number;
325
325
  headers: any;
@@ -355,7 +355,7 @@ declare const _default: {
355
355
  watchShake: (args?: AsyncCallback<any> | undefined) => void;
356
356
  writeBLECharacteristicValue: (args: WriteBLECharacteristicValueArgs) => void;
357
357
  showSharePanel: (args?: any) => void;
358
- setTransparentTitle: (args: AsyncCallback<{
358
+ setTransparentTitle: (args: import("@hylid/types").AsyncCallback<{
359
359
  transparentTitle: "none" | "auto" | "always" | "custom";
360
360
  }>) => void;
361
361
  getCurrentLanguage: () => string;
@@ -381,23 +381,23 @@ declare const _default: {
381
381
  data?: any;
382
382
  timeout?: number | undefined;
383
383
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
384
- } & AsyncCallback<{
384
+ } & import("@hylid/types").AsyncCallback<{
385
385
  data: any;
386
386
  status: number;
387
387
  headers: any;
388
388
  }>) => void;
389
- }) => (args?: (import("@hylid/types").IRPCArgs & AsyncCallback<{
389
+ }) => (args?: (import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
390
390
  headers: Record<string, string>;
391
391
  resData: object;
392
392
  }>) | undefined) => Promise<{
393
393
  headers: Record<string, string>;
394
394
  resData: object;
395
395
  }>;
396
- getAppId: (args: AsyncCallback<{
396
+ getAppId: (args: import("@hylid/types").AsyncCallback<{
397
397
  appId: string;
398
398
  }>) => void;
399
399
  getCurrentPages: (args: import("@hylid/types").getCurrentPagesOptions) => void;
400
- getSDKVersion: (args: AsyncCallback<string>) => void;
400
+ getSDKVersion: (args: import("@hylid/types").AsyncCallback<string>) => void;
401
401
  defineRuntimeConfig: (args: Record<string, any>) => Record<string, any>;
402
402
  popWindow: () => void;
403
403
  };
@@ -135,7 +135,7 @@ declare const _default: {
135
135
  getAuthCode: (args: {
136
136
  scopes: string | string[];
137
137
  appId?: string | undefined;
138
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
138
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
139
139
  getBatteryInfo: (args?: AsyncCallback<{
140
140
  level: number;
141
141
  isCharging: boolean;
@@ -305,7 +305,7 @@ declare const _default: {
305
305
  data?: any;
306
306
  timeout?: number | undefined;
307
307
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
308
- } & AsyncCallback<{
308
+ } & import("@hylid/types").AsyncCallback<{
309
309
  data: any;
310
310
  status: number;
311
311
  headers: any;
@@ -342,11 +342,11 @@ declare const _default: {
342
342
  writeBLECharacteristicValue: (args: WriteBLECharacteristicValueArgs) => void;
343
343
  showSharePanel: (args?: any) => void;
344
344
  getCurrentLanguage: () => string;
345
- getAppId: (args: AsyncCallback<{
345
+ getAppId: (args: import("@hylid/types").AsyncCallback<{
346
346
  appId: string;
347
347
  }>) => void;
348
348
  getCurrentPages: (args: import("@hylid/types").getCurrentPagesOptions) => void;
349
- getSDKVersion: (args: AsyncCallback<string>) => void;
349
+ getSDKVersion: (args: import("@hylid/types").AsyncCallback<string>) => void;
350
350
  };
351
351
  export default _default;
352
352
  export { addPhoneContact, alert, chooseImage, choosePhoneContact, clearStorage, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, datePicker, disconnectBLEDevice, downloadFile, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getLocation, getNetworkType, getOpenUserInfo, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSiteInfo, getStorage, getSystemInfo, hideBackHome, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideToast, 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, openSetting, pageScrollTo, previewImage, prompt, readBLECharacteristicValue, redirectTo, reLaunch, removeSavedFile, removeStorage, request, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setScreenBrightness, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, tradePay, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, showSharePanel, getCurrentLanguage, getAppId, getCurrentPages, getSDKVersion, };
@@ -149,7 +149,7 @@ declare const _default: {
149
149
  getAuthCode: (args: {
150
150
  scopes: string | string[];
151
151
  appId?: string | undefined;
152
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
152
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
153
153
  getBatteryInfo: (args?: AsyncCallback<{
154
154
  level: number;
155
155
  isCharging: boolean;
@@ -319,7 +319,7 @@ declare const _default: {
319
319
  data?: any;
320
320
  timeout?: number | undefined;
321
321
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
322
- } & AsyncCallback<{
322
+ } & import("@hylid/types").AsyncCallback<{
323
323
  data: any;
324
324
  status: number;
325
325
  headers: any;
@@ -355,7 +355,7 @@ declare const _default: {
355
355
  watchShake: (args?: AsyncCallback<any> | undefined) => void;
356
356
  writeBLECharacteristicValue: (args: WriteBLECharacteristicValueArgs) => void;
357
357
  showSharePanel: (args?: any) => void;
358
- setTransparentTitle: (args: AsyncCallback<{
358
+ setTransparentTitle: (args: import("@hylid/types").AsyncCallback<{
359
359
  transparentTitle: "none" | "auto" | "always" | "custom";
360
360
  }>) => void;
361
361
  getCurrentLanguage: () => string;
@@ -381,23 +381,23 @@ declare const _default: {
381
381
  data?: any;
382
382
  timeout?: number | undefined;
383
383
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
384
- } & AsyncCallback<{
384
+ } & import("@hylid/types").AsyncCallback<{
385
385
  data: any;
386
386
  status: number;
387
387
  headers: any;
388
388
  }>) => void;
389
- }) => (args?: (import("@hylid/types").IRPCArgs & AsyncCallback<{
389
+ }) => (args?: (import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
390
390
  headers: Record<string, string>;
391
391
  resData: object;
392
392
  }>) | undefined) => Promise<{
393
393
  headers: Record<string, string>;
394
394
  resData: object;
395
395
  }>;
396
- getAppId: (args: AsyncCallback<{
396
+ getAppId: (args: import("@hylid/types").AsyncCallback<{
397
397
  appId: string;
398
398
  }>) => void;
399
399
  getCurrentPages: (args: import("@hylid/types").getCurrentPagesOptions) => void;
400
- getSDKVersion: (args: AsyncCallback<string>) => void;
400
+ getSDKVersion: (args: import("@hylid/types").AsyncCallback<string>) => void;
401
401
  defineRuntimeConfig: (args: Record<string, any>) => Record<string, any>;
402
402
  popWindow: () => void;
403
403
  };
@@ -168,7 +168,7 @@ declare const _default: {
168
168
  getAuthCode: (args: {
169
169
  scopes: string | string[];
170
170
  appId?: string | undefined;
171
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
171
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
172
172
  getBatteryInfo: (args?: AsyncCallback<{
173
173
  level: number;
174
174
  isCharging: boolean;
@@ -348,12 +348,12 @@ declare const _default: {
348
348
  data?: any;
349
349
  timeout?: number | undefined;
350
350
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
351
- } & AsyncCallback<{
351
+ } & import("@hylid/types").AsyncCallback<{
352
352
  data: any;
353
353
  status: number;
354
354
  headers: any;
355
355
  }>) => void;
356
- rpc: (args: import("@hylid/types").IRPCArgs & AsyncCallback<{
356
+ rpc: (args: import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
357
357
  headers: Record<string, string>;
358
358
  resData: object;
359
359
  }>) => void;
@@ -368,7 +368,7 @@ declare const _default: {
368
368
  setClipboard: (args: SetClipboardArgs) => void;
369
369
  setKeepScreenOn: (args: SetKeepScreenOnArgs) => void;
370
370
  setNavigationBar: (args: SetNavigationBarArgs) => void;
371
- setOptionMenu: (args?: (import("@hylid/types").Common & AsyncCallback<any>) | undefined) => void;
371
+ setOptionMenu: (args?: (import("@hylid/types").Common & import("@hylid/types").AsyncCallback<any>) | undefined) => void;
372
372
  setScreenBrightness: (args: SetScreenBrightnessArgs) => void;
373
373
  setStorage: (args: SetStorage) => void;
374
374
  setTabBarStyle: (args: SetTabBarStyleArgs) => void;
@@ -395,11 +395,11 @@ declare const _default: {
395
395
  showSharePanel: (args?: any) => void;
396
396
  hideOptionButton: (args?: any) => void;
397
397
  getCurrentLanguage: () => string;
398
- getAppId: (args: AsyncCallback<{
398
+ getAppId: (args: import("@hylid/types").AsyncCallback<{
399
399
  appId: string;
400
400
  }>) => void;
401
401
  getCurrentPages: (args: import("@hylid/types").getCurrentPagesOptions) => void;
402
- getSDKVersion: (args: AsyncCallback<string>) => void;
402
+ getSDKVersion: (args: import("@hylid/types").AsyncCallback<string>) => void;
403
403
  };
404
404
  export default _default;
405
405
  export { addFatigueAction, addPhoneContact, alert, apDisableJSAPI, appxrpc, APRegionRPC, batchQueryCdpSpaceInfo, chooseImage, choosePhoneContact, clearStorage, closeBluetoothAdapter, closeSocket, confirm, connectBLEDevice, connectSocket, datePicker, disconnectBLEDevice, downloadFile, exitApp, getAppToken, getAuthCode, getBatteryInfo, getBLEDeviceCharacteristics, getBLEDeviceServices, getBluetoothAdapterState, getBluetoothDevices, getClipboard, getComponentAuth, getConnectedBluetoothDevices, getFileInfo, getImageInfo, getLocation, getNetworkType, getOpenUserInfo, getPaymentCode, getPhoneNumber, getSavedFileInfo, getSavedFileList, getScreenBrightness, getServerTime, getSetting, getSiteInfo, getStorage, getSystemInfo, hideBackHome, hideKeyboard, hideLoading, hideNavigationBarLoading, hideTabBar, hideToast, inquireQuote, isInstalledApp, makePhoneCall, multiLevelSelect, navigateBack, navigateBackMiniProgram, navigateTo, navigateToBizScene, 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, request, rpc, saveFile, saveImage, scan, sendSocketMessage, setBackgroundColor, setCanPullDown, setClipboard, setKeepScreenOn, setNavigationBar, setOptionMenu, setScreenBrightness, setStorage, setTabBarStyle, showActionSheet, showAuthGuide, showLoading, showNavigationBarLoading, showToast, signContract, startApp, startBizService, startBluetoothDevicesDiscovery, startPullDownRefresh, stopBluetoothDevicesDiscovery, stopPullDownRefresh, switchTab, thirdPartyAuthForAc, tradePay, uploadApdidToken, uploadFile, vibrate, watchShake, writeBLECharacteristicValue, showSharePanel, hideOptionButton, getCurrentLanguage, getAppId, getCurrentPages, getSDKVersion, };
@@ -149,7 +149,7 @@ declare const _default: {
149
149
  getAuthCode: (args: {
150
150
  scopes: string | string[];
151
151
  appId?: string | undefined;
152
- } & AsyncCallback<GetAuthCodeCallbackValue>) => void;
152
+ } & import("@hylid/types").AsyncCallback<GetAuthCodeCallbackValue>) => void;
153
153
  getBatteryInfo: (args?: AsyncCallback<{
154
154
  level: number;
155
155
  isCharging: boolean;
@@ -319,7 +319,7 @@ declare const _default: {
319
319
  data?: any;
320
320
  timeout?: number | undefined;
321
321
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
322
- } & AsyncCallback<{
322
+ } & import("@hylid/types").AsyncCallback<{
323
323
  data: any;
324
324
  status: number;
325
325
  headers: any;
@@ -355,7 +355,7 @@ declare const _default: {
355
355
  watchShake: (args?: AsyncCallback<any> | undefined) => void;
356
356
  writeBLECharacteristicValue: (args: WriteBLECharacteristicValueArgs) => void;
357
357
  showSharePanel: (args?: any) => void;
358
- setTransparentTitle: (args: AsyncCallback<{
358
+ setTransparentTitle: (args: import("@hylid/types").AsyncCallback<{
359
359
  transparentTitle: "none" | "auto" | "always" | "custom";
360
360
  }>) => void;
361
361
  getCurrentLanguage: () => string;
@@ -381,23 +381,23 @@ declare const _default: {
381
381
  data?: any;
382
382
  timeout?: number | undefined;
383
383
  dataType?: "json" | "text" | "base64" | "arraybuffer" | undefined;
384
- } & AsyncCallback<{
384
+ } & import("@hylid/types").AsyncCallback<{
385
385
  data: any;
386
386
  status: number;
387
387
  headers: any;
388
388
  }>) => void;
389
- }) => (args?: (import("@hylid/types").IRPCArgs & AsyncCallback<{
389
+ }) => (args?: (import("@hylid/types").IRPCArgs & import("@hylid/types").AsyncCallback<{
390
390
  headers: Record<string, string>;
391
391
  resData: object;
392
392
  }>) | undefined) => Promise<{
393
393
  headers: Record<string, string>;
394
394
  resData: object;
395
395
  }>;
396
- getAppId: (args: AsyncCallback<{
396
+ getAppId: (args: import("@hylid/types").AsyncCallback<{
397
397
  appId: string;
398
398
  }>) => void;
399
399
  getCurrentPages: (args: import("@hylid/types").getCurrentPagesOptions) => void;
400
- getSDKVersion: (args: AsyncCallback<string>) => void;
400
+ getSDKVersion: (args: import("@hylid/types").AsyncCallback<string>) => void;
401
401
  defineRuntimeConfig: (args: Record<string, any>) => Record<string, any>;
402
402
  popWindow: () => void;
403
403
  };