@tarojs/plugin-platform-harmony-ets 4.0.10-alpha.4 → 4.0.10-alpha.8

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 (200) hide show
  1. package/dist/apis/apis.d.ts +19 -0
  2. package/dist/apis/base/crypto.d.ts +1 -0
  3. package/dist/apis/base/debug.d.ts +3 -0
  4. package/dist/apis/base/index.d.ts +10 -0
  5. package/dist/apis/base/performance.d.ts +5 -0
  6. package/dist/apis/base/system.d.ts +3 -0
  7. package/dist/apis/base/update.d.ts +2 -0
  8. package/dist/apis/base/weapp/app-event.d.ts +19 -0
  9. package/dist/apis/base/weapp/life-cycle.d.ts +3 -0
  10. package/dist/apis/canvas/index.d.ts +10 -0
  11. package/dist/apis/data-analysis/index.d.ts +4 -0
  12. package/dist/apis/device/accelerometer.d.ts +17 -0
  13. package/dist/apis/device/accessibility.d.ts +1 -0
  14. package/dist/apis/device/battery.d.ts +3 -0
  15. package/dist/apis/device/bluetooth-ble.d.ts +16 -0
  16. package/dist/apis/device/bluetooth-peripheral.d.ts +3 -0
  17. package/dist/apis/device/bluetooth.d.ts +13 -0
  18. package/dist/apis/device/calendar.d.ts +2 -0
  19. package/dist/apis/device/clipboard.d.ts +9 -0
  20. package/dist/apis/device/compass.d.ts +16 -0
  21. package/dist/apis/device/contact.d.ts +2 -0
  22. package/dist/apis/device/crypto.d.ts +1 -0
  23. package/dist/apis/device/gyroscope.d.ts +4 -0
  24. package/dist/apis/device/iBeacon.d.ts +7 -0
  25. package/dist/apis/device/index.d.ts +24 -0
  26. package/dist/apis/device/keyboard.d.ts +5 -0
  27. package/dist/apis/device/memory.d.ts +2 -0
  28. package/dist/apis/device/motion.d.ts +4 -0
  29. package/dist/apis/device/network.d.ts +14 -0
  30. package/dist/apis/device/nfc.d.ts +7 -0
  31. package/dist/apis/device/phone.d.ts +2 -0
  32. package/dist/apis/device/scan.d.ts +1 -0
  33. package/dist/apis/device/screen.d.ts +10 -0
  34. package/dist/apis/device/sms.d.ts +1 -0
  35. package/dist/apis/device/vibrate.d.ts +3 -0
  36. package/dist/apis/device/wifi.d.ts +12 -0
  37. package/dist/apis/ext/index.d.ts +2 -0
  38. package/dist/apis/files/index.d.ts +32 -0
  39. package/dist/apis/files/manager.d.ts +28 -0
  40. package/dist/apis/framework/index.d.ts +18 -0
  41. package/dist/apis/index.d.ts +22 -0
  42. package/dist/apis/location/index.d.ts +13 -0
  43. package/dist/apis/media/EditorContext.d.ts +16 -0
  44. package/dist/apis/media/audio/index.d.ts +12 -0
  45. package/dist/apis/media/background-audio/index.d.ts +12 -0
  46. package/dist/apis/media/camera.d.ts +2 -0
  47. package/dist/apis/media/common.d.ts +3 -0
  48. package/dist/apis/media/image/index.d.ts +6 -0
  49. package/dist/apis/media/index.d.ts +13 -0
  50. package/dist/apis/media/live.d.ts +2 -0
  51. package/dist/apis/media/map.d.ts +1 -0
  52. package/dist/apis/media/media-recorder.d.ts +1 -0
  53. package/dist/apis/media/recorder.d.ts +3 -0
  54. package/dist/apis/media/video/index.d.ts +7 -0
  55. package/dist/apis/media/video-decoder.d.ts +1 -0
  56. package/dist/apis/media/video-processing.d.ts +1 -0
  57. package/dist/apis/media/voip.d.ts +16 -0
  58. package/dist/apis/navigate/index.d.ts +5 -0
  59. package/dist/apis/network/downloadFile.d.ts +2 -0
  60. package/dist/apis/network/index.d.ts +7 -0
  61. package/dist/apis/network/mdns.d.ts +10 -0
  62. package/dist/apis/network/request.d.ts +2 -0
  63. package/dist/apis/network/tcp.d.ts +1 -0
  64. package/dist/apis/network/udp.d.ts +1 -0
  65. package/dist/apis/network/uploadFile.d.ts +2 -0
  66. package/dist/apis/network/webSocket.d.ts +2 -0
  67. package/dist/apis/open-api/account.d.ts +1 -0
  68. package/dist/apis/open-api/address.d.ts +1 -0
  69. package/dist/apis/open-api/authorize.d.ts +2 -0
  70. package/dist/apis/open-api/card.d.ts +2 -0
  71. package/dist/apis/open-api/channels-live.d.ts +8 -0
  72. package/dist/apis/open-api/customer-service.d.ts +1 -0
  73. package/dist/apis/open-api/device-voip.d.ts +2 -0
  74. package/dist/apis/open-api/facial.d.ts +4 -0
  75. package/dist/apis/open-api/favorites.d.ts +2 -0
  76. package/dist/apis/open-api/group.d.ts +1 -0
  77. package/dist/apis/open-api/index.d.ts +21 -0
  78. package/dist/apis/open-api/invoice.d.ts +2 -0
  79. package/dist/apis/open-api/license-plate.d.ts +1 -0
  80. package/dist/apis/open-api/login.d.ts +3 -0
  81. package/dist/apis/open-api/my-miniprogram.d.ts +1 -0
  82. package/dist/apis/open-api/privacy.d.ts +4 -0
  83. package/dist/apis/open-api/red-package.d.ts +1 -0
  84. package/dist/apis/open-api/settings.d.ts +2 -0
  85. package/dist/apis/open-api/soter.d.ts +3 -0
  86. package/dist/apis/open-api/subscribe-message.d.ts +2 -0
  87. package/dist/apis/open-api/user-info.d.ts +15 -0
  88. package/dist/apis/open-api/werun.d.ts +2 -0
  89. package/dist/apis/payment/index.d.ts +3 -0
  90. package/dist/apis/route/index.d.ts +10 -0
  91. package/dist/apis/share/index.d.ts +20 -0
  92. package/dist/apis/storage/background-fetch.d.ts +4 -0
  93. package/dist/apis/storage/cache-manager.d.ts +1 -0
  94. package/dist/apis/storage/index.d.ts +19 -0
  95. package/dist/apis/ui/animation/animation.d.ts +56 -0
  96. package/dist/apis/ui/animation/index.d.ts +3 -0
  97. package/dist/apis/ui/background.d.ts +2 -0
  98. package/dist/apis/ui/custom-component.d.ts +2 -0
  99. package/dist/apis/ui/fonts.d.ts +1 -0
  100. package/dist/apis/ui/index.d.ts +12 -0
  101. package/dist/apis/ui/interaction/index.d.ts +8 -0
  102. package/dist/apis/ui/menu.d.ts +1 -0
  103. package/dist/apis/ui/navigation-bar/index.d.ts +6 -0
  104. package/dist/apis/ui/pull-down-refresh.d.ts +3 -0
  105. package/dist/apis/ui/scroll/index.d.ts +5 -0
  106. package/dist/apis/ui/sticky.d.ts +1 -0
  107. package/dist/apis/ui/tab-bar.d.ts +9 -0
  108. package/dist/apis/ui/window.d.ts +14 -0
  109. package/dist/apis/utils/handler.d.ts +46 -0
  110. package/dist/apis/utils/index.d.ts +17 -0
  111. package/dist/apis/utils/permissions.d.ts +5 -0
  112. package/dist/apis/utils/types.d.ts +11 -0
  113. package/dist/apis/utils/validate.d.ts +39 -0
  114. package/dist/apis/worker/index.d.ts +1 -0
  115. package/dist/apis/wxml/IntersectionObserver.d.ts +12 -0
  116. package/dist/apis/wxml/index.d.ts +7 -0
  117. package/dist/apis/wxml/nodesRef.d.ts +14 -0
  118. package/dist/apis/wxml/selectorQuery.d.ts +39 -0
  119. package/dist/components/components-harmony-ets/tag.d.ts +53 -0
  120. package/dist/components/components-harmony-ets/utils/DynamicCenter.d.ts +7 -0
  121. package/dist/components/components-harmony-ets/utils/events.d.ts +3 -0
  122. package/dist/components/components-harmony-ets/utils/htmlParser/HarmonyHTMLParser.d.ts +11 -0
  123. package/dist/components/components-harmony-ets/utils/htmlParser/index.d.ts +3 -0
  124. package/dist/components/components-harmony-ets/utils/index.d.ts +11 -0
  125. package/dist/components/components-react.d.ts +7 -0
  126. package/dist/components/components-react.js +2 -41
  127. package/dist/components/components-react.js.map +1 -1
  128. package/dist/components/index.d.ts +119 -0
  129. package/dist/index.d.ts +6 -148
  130. package/dist/index.js.map +1 -1
  131. package/dist/program/arkTS.d.ts +40 -0
  132. package/dist/program/harmony.d.ts +36 -0
  133. package/dist/program/jsUI.d.ts +60 -0
  134. package/dist/runtime-ets/bom/URL.d.ts +2 -0
  135. package/dist/runtime-ets/bom/document.d.ts +2 -0
  136. package/dist/runtime-ets/bom/getComputedStyle.d.ts +1 -0
  137. package/dist/runtime-ets/bom/history.d.ts +1 -0
  138. package/dist/runtime-ets/bom/location.d.ts +1 -0
  139. package/dist/runtime-ets/bom/navigator.d.ts +1 -0
  140. package/dist/runtime-ets/bom/raf.d.ts +1 -0
  141. package/dist/runtime-ets/bom/window.d.ts +20 -0
  142. package/dist/runtime-ets/constant.d.ts +17 -0
  143. package/dist/runtime-ets/current.d.ts +4 -0
  144. package/dist/runtime-ets/dom/bind.d.ts +4 -0
  145. package/dist/runtime-ets/dom/class-list.d.ts +15 -0
  146. package/dist/runtime-ets/dom/comment.d.ts +5 -0
  147. package/dist/runtime-ets/dom/cssNesting.d.ts +7 -0
  148. package/dist/runtime-ets/dom/cssStyleDeclaration.d.ts +14 -0
  149. package/dist/runtime-ets/dom/document.d.ts +20 -0
  150. package/dist/runtime-ets/dom/element/index.d.ts +14 -0
  151. package/dist/runtime-ets/dom/element/movableArea.d.ts +5 -0
  152. package/dist/runtime-ets/dom/element/progress.d.ts +5 -0
  153. package/dist/runtime-ets/dom/element/text.d.ts +5 -0
  154. package/dist/runtime-ets/dom/element/webView.d.ts +15 -0
  155. package/dist/runtime-ets/dom/event-source.d.ts +1 -0
  156. package/dist/runtime-ets/dom/event.d.ts +24 -0
  157. package/dist/runtime-ets/dom/eventTarget.d.ts +17 -0
  158. package/dist/runtime-ets/dom/node.d.ts +62 -0
  159. package/dist/runtime-ets/dom/stylesheet/covertWeb2Hm.d.ts +3 -0
  160. package/dist/runtime-ets/dom/stylesheet/index.d.ts +83 -0
  161. package/dist/runtime-ets/emitter/emitter.d.ts +1 -0
  162. package/dist/runtime-ets/env.d.ts +1 -0
  163. package/dist/runtime-ets/index.d.ts +22 -0
  164. package/dist/runtime-ets/interface/event.d.ts +9 -0
  165. package/dist/runtime-ets/interface/index.d.ts +6 -0
  166. package/dist/runtime-ets/utils/index.d.ts +26 -0
  167. package/dist/runtime-ets/utils/info.d.ts +11 -0
  168. package/dist/runtime-ets/utils/router.d.ts +1 -0
  169. package/dist/runtime-framework/react/app.d.ts +12 -0
  170. package/dist/runtime-framework/react/connect.d.ts +1 -0
  171. package/dist/runtime-framework/react/constant.d.ts +5 -0
  172. package/dist/runtime-framework/react/hooks.d.ts +30 -0
  173. package/dist/runtime-framework/react/index.d.ts +5 -0
  174. package/dist/runtime-framework/react/native-page.d.ts +8 -0
  175. package/dist/runtime-framework/react/page.d.ts +13 -0
  176. package/dist/runtime-framework/react/utils/index.d.ts +7 -0
  177. package/dist/runtime-framework/react/utils/is.d.ts +10 -0
  178. package/dist/runtime-framework/solid/app.d.ts +10 -0
  179. package/dist/runtime-framework/solid/connect.d.ts +4 -0
  180. package/dist/runtime-framework/solid/constant.d.ts +5 -0
  181. package/dist/runtime-framework/solid/hooks.d.ts +30 -0
  182. package/dist/runtime-framework/solid/index.d.ts +4 -0
  183. package/dist/runtime-framework/solid/page.d.ts +13 -0
  184. package/dist/runtime-framework/solid/reconciler/h.d.ts +8 -0
  185. package/dist/runtime-framework/solid/reconciler/index.d.ts +3 -0
  186. package/dist/runtime-framework/solid/reconciler/props.d.ts +7 -0
  187. package/dist/runtime-framework/solid/reconciler/render.d.ts +16 -0
  188. package/dist/runtime-framework/solid/reconciler/use.d.ts +1 -0
  189. package/dist/runtime-framework/solid/utils/index.d.ts +16 -0
  190. package/dist/runtime-framework/solid/utils/is.d.ts +10 -0
  191. package/dist/runtime-utils.d.ts +4 -818
  192. package/dist/runtime-utils.js +393 -393
  193. package/dist/runtime-utils.js.map +1 -1
  194. package/dist/runtime.js +393 -393
  195. package/dist/runtime.js.map +1 -1
  196. package/dist/template.d.ts +43 -0
  197. package/dist/utils/api-loader.d.ts +1 -0
  198. package/dist/utils/constants.d.ts +4 -0
  199. package/dist/utils/index.d.ts +3 -0
  200. package/package.json +10 -10
@@ -0,0 +1 @@
1
+ export declare const createMapContext: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1 @@
1
+ export declare const createMediaRecorder: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,3 @@
1
+ export declare const stopRecord: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const startRecord: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
3
+ export declare const getRecorderManager: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,7 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ export declare const createVideoContext: typeof Taro.createVideoContext;
3
+ export declare const chooseVideo: typeof Taro.chooseVideo;
4
+ export declare const compressVideo: (option?: {}, ...args: any[]) => Promise<Partial<import("../../utils/handler").ICallbackResult> & Record<string, unknown> & import("../../utils/handler").ICallbackResult>;
5
+ export declare const getVideoInfo: (option?: {}, ...args: any[]) => Promise<Partial<import("../../utils/handler").ICallbackResult> & Record<string, unknown> & import("../../utils/handler").ICallbackResult>;
6
+ export declare const openVideoEditor: (option?: {}, ...args: any[]) => Promise<Partial<import("../../utils/handler").ICallbackResult> & Record<string, unknown> & import("../../utils/handler").ICallbackResult>;
7
+ export declare const saveVideoToPhotosAlbum: typeof Taro.saveVideoToPhotosAlbum;
@@ -0,0 +1 @@
1
+ export declare const createVideoDecoder: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1 @@
1
+ export declare const createMediaContainer: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,16 @@
1
+ export declare const updateVoIPChatMuteConfig: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const subscribeVoIPVideoMembers: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
3
+ export declare const setEnable1v1Chat: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
4
+ export declare const onVoIPVideoMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
5
+ export declare const onVoIPChatStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
6
+ export declare const onVoIPChatSpeakersChanged: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
7
+ export declare const onVoIPChatMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
8
+ export declare const onVoIPChatInterrupted: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
9
+ export declare const offVoIPChatSpeakersChanged: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
10
+ export declare const offVoIPVideoMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
11
+ export declare const offVoIPChatStateChanged: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
12
+ export declare const offVoIPChatMembersChanged: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
13
+ export declare const offVoIPChatInterrupted: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
14
+ export declare const joinVoIPChat: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
15
+ export declare const join1v1Chat: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
16
+ export declare const exitVoIPChat: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,5 @@
1
+ export declare const openEmbeddedMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const navigateToMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
3
+ export declare const navigateBackMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
4
+ export declare const exitMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
5
+ export declare const openBusinessView: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,2 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ export declare const downloadFile: typeof Taro.downloadFile;
@@ -0,0 +1,7 @@
1
+ export * from './downloadFile';
2
+ export * from './mdns';
3
+ export * from './request';
4
+ export * from './tcp';
5
+ export * from './udp';
6
+ export * from './uploadFile';
7
+ export * from './webSocket';
@@ -0,0 +1,10 @@
1
+ export declare const stopLocalServiceDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const startLocalServiceDiscovery: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
3
+ export declare const onLocalServiceResolveFail: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
4
+ export declare const onLocalServiceLost: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
5
+ export declare const onLocalServiceFound: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
6
+ export declare const onLocalServiceDiscoveryStop: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
7
+ export declare const offLocalServiceResolveFail: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
8
+ export declare const offLocalServiceLost: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
9
+ export declare const offLocalServiceFound: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
10
+ export declare const offLocalServiceDiscoveryStop: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,2 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ export declare const request: typeof Taro.request;
@@ -0,0 +1 @@
1
+ export declare const createTCPSocket: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1 @@
1
+ export declare const createUDPSocket: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,2 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ export declare const uploadFile: typeof Taro.uploadFile;
@@ -0,0 +1,2 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ export declare const connectSocket: typeof Taro.connectSocket;
@@ -0,0 +1 @@
1
+ export declare const getAccountInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1 @@
1
+ export declare const chooseAddress: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,2 @@
1
+ export declare const authorizeForMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const authorize: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,2 @@
1
+ export declare const openCard: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const addCard: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,8 @@
1
+ export declare const reserveChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const openChannelsUserProfile: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
3
+ export declare const openChannelsLive: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
4
+ export declare const openChannelsEvent: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
5
+ export declare const openChannelsActivity: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
6
+ export declare const getChannelsShareKey: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
7
+ export declare const getChannelsLiveNoticeInfo: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
8
+ export declare const getChannelsLiveInfo: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1 @@
1
+ export declare const openCustomerServiceChat: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,2 @@
1
+ export declare const requestDeviceVoIP: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const getDeviceVoIPList: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,4 @@
1
+ export declare const checkIsSupportFacialRecognition: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const startFacialRecognitionVerify: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
3
+ export declare const startFacialRecognitionVerifyAndUploadVideo: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
4
+ export declare const faceVerifyForPay: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,2 @@
1
+ export declare const addVideoToFavorites: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const addFileToFavorites: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1 @@
1
+ export declare const getGroupEnterInfo: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,21 @@
1
+ export * from './account';
2
+ export * from './address';
3
+ export * from './authorize';
4
+ export * from './card';
5
+ export * from './channels-live';
6
+ export * from './customer-service';
7
+ export * from './device-voip';
8
+ export * from './facial';
9
+ export * from './favorites';
10
+ export * from './group';
11
+ export * from './invoice';
12
+ export * from './license-plate';
13
+ export * from './login';
14
+ export * from './my-miniprogram';
15
+ export * from './privacy';
16
+ export * from './red-package';
17
+ export * from './settings';
18
+ export * from './soter';
19
+ export * from './subscribe-message';
20
+ export * from './user-info';
21
+ export * from './werun';
@@ -0,0 +1,2 @@
1
+ export declare const chooseInvoiceTitle: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const chooseInvoice: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1 @@
1
+ export declare const chooseLicensePlate: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,3 @@
1
+ export declare const pluginLogin: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const login: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
3
+ export declare const checkSession: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1 @@
1
+ export declare const checkIsAddedToMyMiniProgram: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,4 @@
1
+ export declare const requirePrivacyAuthorize: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const openPrivacyContract: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
3
+ export declare const onNeedPrivacyAuthorization: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
4
+ export declare const getPrivacySetting: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1 @@
1
+ export declare const showRedPackage: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,2 @@
1
+ export declare const openSetting: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const getSetting: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,3 @@
1
+ export declare const startSoterAuthentication: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const checkIsSupportSoterAuthentication: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
3
+ export declare const checkIsSoterEnrolledInDevice: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,2 @@
1
+ export declare const requestSubscribeMessage: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const requestSubscribeDeviceMessage: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 用户相关API, Harmony ACE API 6
3
+ *
4
+ * 1. 华为账号场景介绍文档 @see https://developer.huawei.com/consumer/cn/doc/development/HMSCore-Guides/harmonyos-js-login-0000001151310900
5
+ * 2. 华为账号API参考 @see https://developer.huawei.com/consumer/cn/doc/development/HMSCore-References/harmonyos-js-overview-0000001063532145
6
+ */
7
+ /**
8
+ * 通过Scope数组获取已登录的对应帐号信息(依赖login行为)
9
+ * @param options
10
+ */
11
+ export declare const getUserInfo: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
12
+ /**
13
+ * 获取用户信息
14
+ */
15
+ export declare const getUserProfile: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,2 @@
1
+ export declare const shareToWeRun: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const getWeRunData: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,3 @@
1
+ export declare const requestPayment: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const requestPluginPayment: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
3
+ export declare const requestOrderPayment: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,10 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ export declare const navigateTo: (option: Taro.navigateTo.Option) => Promise<TaroGeneral.CallbackResult>;
3
+ export declare const redirectTo: (option: Taro.navigateTo.Option) => Promise<TaroGeneral.CallbackResult>;
4
+ export declare function navigateBack(options: Taro.navigateBack.Option & {
5
+ url?: string;
6
+ }): Promise<any>;
7
+ export declare const reLaunch: typeof Taro.reLaunch;
8
+ export declare const switchTab: typeof Taro.switchTab;
9
+ export declare const getLength: () => any;
10
+ export declare const getState: () => any;
@@ -0,0 +1,20 @@
1
+ /** 更新转发属性 */
2
+ export declare const updateShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
3
+ /** 显示当前页面的转发按钮 */
4
+ export declare const showShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
5
+ /** 打开分享图片弹窗,可以将图片发送给朋友、收藏或下载 */
6
+ export declare const showShareImageMenu: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
7
+ /** 转发视频到聊天 */
8
+ export declare const shareVideoMessage: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
9
+ /** 转发文件到聊天 */
10
+ export declare const shareFileMessage: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
11
+ /** 监听用户点击右上角菜单的「复制链接」按钮时触发的事件 */
12
+ export declare const onCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
13
+ /** 移除用户点击右上角菜单的「复制链接」按钮时触发的事件的监听函数 */
14
+ export declare const offCopyUrl: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
15
+ /** 隐藏当前页面的转发按钮 */
16
+ export declare const hideShareMenu: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
17
+ /** 获取转发详细信息 */
18
+ export declare const getShareInfo: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
19
+ /** 验证私密消息。 */
20
+ export declare const authPrivateMessage: (option?: {}, ...args: any[]) => Promise<import("../utils/handler").ICallbackResult & Record<string, unknown>>;
@@ -0,0 +1,4 @@
1
+ export declare const setBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare const onBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
3
+ export declare const getBackgroundFetchToken: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
4
+ export declare const getBackgroundFetchData: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1 @@
1
+ export declare const createCacheManager: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,19 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ export declare function getStorage<T = any>(options: Taro.getStorage.Option<T>): Promise<unknown> | undefined;
3
+ export declare function setStorage(options: Taro.setStorage.Option): Promise<unknown> | undefined;
4
+ export declare function removeStorage(options: Taro.removeStorage.Option): Promise<unknown> | undefined;
5
+ export declare const getStorageInfoSync: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
6
+ export declare const getStorageInfo: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
7
+ export declare const createBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
8
+ export declare const revokeBufferURL: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
9
+ export declare const batchSetStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
10
+ export declare const batchSetStorage: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
11
+ export declare const batchGetStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
12
+ export declare const batchGetStorage: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
13
+ export declare const clearStorage: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
14
+ export declare const getStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
15
+ export declare const setStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
16
+ export declare const clearStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
17
+ export declare const removeStorageSync: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
18
+ export * from './background-fetch';
19
+ export * from './cache-manager';
@@ -0,0 +1,56 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ interface IAnimationAttr {
3
+ duration: number;
4
+ delay: number;
5
+ timingFunction: string;
6
+ transformOrigin: string;
7
+ }
8
+ type TStep = {
9
+ delay: number;
10
+ duration: number;
11
+ timingFunction: string;
12
+ transformOrigin: string;
13
+ rule: TRule;
14
+ };
15
+ type TRule = Record<string, any>;
16
+ export declare class Animation implements Taro.Animation {
17
+ unit: string;
18
+ DEFAULT: IAnimationAttr;
19
+ steps: TStep[];
20
+ rule: TRule;
21
+ constructor({ duration, delay, timingFunction, transformOrigin, unit }?: Taro.createAnimation.Option);
22
+ setDefault(duration: any, delay: any, timingFunction: any, transformOrigin: any): void;
23
+ export(): {
24
+ actions: any[];
25
+ };
26
+ step(arg?: Partial<IAnimationAttr>): Taro.Animation;
27
+ matrix(a: number, b: number, c: number, d: number, tx: number, ty: number): Taro.Animation;
28
+ matrix3d(a1: number, b1: number, c1: number, d1: number, a2: number, b2: number, c2: number, d2: number, a3: number, b3: number, c3: number, d3: number, a4: number, b4: number, c4: number, d4: number): Taro.Animation;
29
+ rotate(angle: number): Taro.Animation;
30
+ rotate3d(x: number, y?: number | undefined, z?: number | undefined, angle?: number | undefined): Taro.Animation;
31
+ rotateX(angle: number): Taro.Animation;
32
+ rotateY(angle: number): Taro.Animation;
33
+ rotateZ(angle: number): Taro.Animation;
34
+ scale(sx: number, sy?: number | undefined): Taro.Animation;
35
+ scale3d(sx: number, sy: number, sz: number): Taro.Animation;
36
+ scaleX(scale: number): Taro.Animation;
37
+ scaleY(scale: number): Taro.Animation;
38
+ scaleZ(scale: number): Taro.Animation;
39
+ skew(ax: number, ay: number): Taro.Animation;
40
+ skewX(angle: number): Taro.Animation;
41
+ skewY(angle: number): Taro.Animation;
42
+ translate(tx?: number | undefined, ty?: number | undefined): Taro.Animation;
43
+ translate3d(tx?: number | undefined, ty?: number | undefined, tz?: number | undefined): Taro.Animation;
44
+ translateX(translation: number): Taro.Animation;
45
+ translateY(translation: number): Taro.Animation;
46
+ translateZ(translation: number): Taro.Animation;
47
+ opacity(value: number): Taro.Animation;
48
+ backgroundColor(value: string): Taro.Animation;
49
+ width(value: string | number): Taro.Animation;
50
+ height(value: string | number): Taro.Animation;
51
+ left(value: string | number): Taro.Animation;
52
+ right(value: string | number): Taro.Animation;
53
+ top(value: string | number): Taro.Animation;
54
+ bottom(value: string | number): Taro.Animation;
55
+ }
56
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Animation } from './animation';
2
+ import type Taro from '@tarojs/taro/types';
3
+ export declare const createAnimation: (option: Taro.createAnimation.Option) => Animation;
@@ -0,0 +1,2 @@
1
+ export declare const setBackgroundTextStyle: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
2
+ export declare function setBackgroundColor(options: Taro.setBackgroundColor.Option): Promise<unknown>;
@@ -0,0 +1,2 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ export declare const nextTick: typeof Taro.nextTick;
@@ -0,0 +1 @@
1
+ export declare const loadFontFace: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,12 @@
1
+ export * from './animation';
2
+ export * from './background';
3
+ export * from './custom-component';
4
+ export * from './fonts';
5
+ export * from './interaction';
6
+ export * from './menu';
7
+ export * from './navigation-bar';
8
+ export * from './pull-down-refresh';
9
+ export * from './scroll';
10
+ export * from './sticky';
11
+ export * from './tab-bar';
12
+ export * from './window';
@@ -0,0 +1,8 @@
1
+ export declare function showToast(options: any): Promise<unknown>;
2
+ export declare function showModal(options: any): Promise<unknown>;
3
+ export declare function showActionSheet(options: any): Promise<unknown>;
4
+ export declare const hideToast: (option?: {}, ...args: any[]) => Promise<Partial<import("../../utils/handler").ICallbackResult> & Record<string, unknown> & import("../../utils/handler").ICallbackResult>;
5
+ export declare const showLoading: (option?: {}, ...args: any[]) => Promise<Partial<import("../../utils/handler").ICallbackResult> & Record<string, unknown> & import("../../utils/handler").ICallbackResult>;
6
+ export declare const hideLoading: (option?: {}, ...args: any[]) => Promise<Partial<import("../../utils/handler").ICallbackResult> & Record<string, unknown> & import("../../utils/handler").ICallbackResult>;
7
+ export declare const enableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<import("../../utils/handler").ICallbackResult> & Record<string, unknown> & import("../../utils/handler").ICallbackResult>;
8
+ export declare const disableAlertBeforeUnload: (option?: {}, ...args: any[]) => Promise<Partial<import("../../utils/handler").ICallbackResult> & Record<string, unknown> & import("../../utils/handler").ICallbackResult>;
@@ -0,0 +1 @@
1
+ export declare const getMenuButtonBoundingClientRect: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,6 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ export declare const setNavigationBarTitle: typeof Taro.setNavigationBarTitle;
3
+ export declare const setNavigationBarColor: typeof Taro.setNavigationBarColor;
4
+ export declare const showNavigationBarLoading: typeof Taro.setNavigationBarColor;
5
+ export declare const hideNavigationBarLoading: typeof Taro.hideNavigationBarLoading;
6
+ export declare const hideHomeButton: typeof Taro.hideHomeButton;
@@ -0,0 +1,3 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ export declare const startPullDownRefresh: typeof Taro.startPullDownRefresh;
3
+ export declare const stopPullDownRefresh: typeof Taro.stopPullDownRefresh;
@@ -0,0 +1,5 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ /**
3
+ * 将页面滚动到目标位置
4
+ */
5
+ export declare const pageScrollTo: typeof Taro.pageScrollTo;
@@ -0,0 +1 @@
1
+ export declare const setTopBarText: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,9 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ export declare const showTabBar: (option?: Taro.showTabBar.Option | undefined) => Promise<TaroGeneral.CallbackResult>;
3
+ export declare const hideTabBar: (option?: Taro.hideTabBar.Option | undefined) => Promise<TaroGeneral.CallbackResult>;
4
+ export declare const setTabBarStyle: typeof Taro.setTabBarStyle;
5
+ export declare const setTabBarItem: typeof Taro.setTabBarItem;
6
+ export declare function showTabBarRedDot(options: any): Promise<unknown>;
7
+ export declare function hideTabBarRedDot(options: any): Promise<unknown>;
8
+ export declare function setTabBarBadge(options: any): Promise<unknown>;
9
+ export declare function removeTabBarBadge(options: any): Promise<unknown>;
@@ -0,0 +1,14 @@
1
+ import type Taro from '@tarojs/taro/types';
2
+ /**
3
+ * 设置窗口大小,该接口仅适用于 PC 平台,使用细则请参见指南
4
+ */
5
+ export declare const setWindowSize: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
6
+ /**
7
+ * 监听窗口尺寸变化事件
8
+ */
9
+ export declare const onWindowResize: typeof Taro.onWindowResize;
10
+ /**
11
+ * 取消监听窗口尺寸变化事件
12
+ */
13
+ export declare const offWindowResize: typeof Taro.offWindowResize;
14
+ export declare const checkIsPictureInPictureActive: (option?: {}, ...args: any[]) => Promise<Partial<import("../utils/handler").ICallbackResult> & Record<string, unknown> & import("../utils/handler").ICallbackResult>;
@@ -0,0 +1,46 @@
1
+ /// <reference types="types/runtime" />
2
+ import type { TFunc } from '@tarojs/runtime';
3
+ export interface ICallbackResult {
4
+ /** 错误信息 */
5
+ errMsg: string;
6
+ }
7
+ type TCallback<T = Partial<ICallbackResult>> = (res: T) => Promise<void> | void;
8
+ interface IMethodParam<T = Partial<ICallbackResult>> {
9
+ name: string;
10
+ success?: TCallback<T & ICallbackResult>;
11
+ fail?: TCallback;
12
+ complete?: TCallback<T | ICallbackResult>;
13
+ }
14
+ interface IMockPromise {
15
+ resolve?: typeof Promise.resolve | TFunc;
16
+ reject?: typeof Promise.reject | TFunc;
17
+ }
18
+ export declare class MethodHandler<T = Partial<ICallbackResult>> {
19
+ methodName: string;
20
+ protected __success?: TCallback<T>;
21
+ protected __fail?: TCallback;
22
+ protected __complete?: TCallback<T | ICallbackResult>;
23
+ protected isHandlerError: boolean;
24
+ constructor({ name, success, fail, complete }: IMethodParam<T>);
25
+ success<U = Record<string, unknown>>(res?: Partial<T> & Partial<ICallbackResult>, promise?: IMockPromise): Promise<T & U & ICallbackResult>;
26
+ fail<U = Record<string, unknown>>(res?: Partial<T> & Partial<ICallbackResult>, promise?: IMockPromise): Promise<T & U & ICallbackResult>;
27
+ }
28
+ type TCallbackManagerFunc<T extends unknown[] = unknown[]> = (...arr: T) => void;
29
+ interface ICallbackManagerOption<T extends unknown[] = unknown[]> {
30
+ callback?: TCallbackManagerFunc<T>;
31
+ ctx?: any;
32
+ [key: string]: unknown;
33
+ }
34
+ type TCallbackManagerUnit<T extends unknown[] = unknown[]> = (TCallbackManagerFunc<T> | ICallbackManagerOption<T>);
35
+ export declare class CallbackManager<T extends unknown[] = unknown[]> {
36
+ callbacks: TCallbackManagerUnit<T>[];
37
+ /** 添加回调 */
38
+ add: (opt?: TCallbackManagerUnit<T>) => void;
39
+ /** 移除回调 */
40
+ remove: (opt?: TCallbackManagerUnit<T>) => void;
41
+ /** 获取回调函数数量 */
42
+ count: () => number;
43
+ /** 触发回调 */
44
+ trigger: (...args: T) => void;
45
+ }
46
+ export {};
@@ -0,0 +1,17 @@
1
+ import { ICallbackResult, MethodHandler } from './handler';
2
+ import type { FunctionType, IAsyncParams } from './types';
3
+ export * from './validate';
4
+ export { MethodHandler };
5
+ export { noop } from '@tarojs/shared';
6
+ export declare function requestPermissions(permissions: string[]): Promise<void>;
7
+ export declare function object2String(obj: any): string;
8
+ export declare function temporarilyNotSupport(name: string, recommended?: string): (option?: {}, ...args: any[]) => Promise<Partial<ICallbackResult> & Record<string, unknown> & ICallbackResult>;
9
+ export declare function permanentlyNotSupport(name?: string): (option?: {}, ...args: any[]) => Promise<ICallbackResult & Record<string, unknown>>;
10
+ /** @deprecated */
11
+ export declare function callCallbackSuccess<T extends FunctionType>(res: any, options?: IAsyncParams<T>): void;
12
+ /** @deprecated */
13
+ export declare function callCallbackFail<T extends FunctionType>(res: any, options?: IAsyncParams<T>): void;
14
+ /** @deprecated */
15
+ export declare function callAsyncSuccess<T extends FunctionType>(resolve: any, res: any, options?: IAsyncParams<T>): void;
16
+ /** @deprecated */
17
+ export declare function callAsyncFail<T extends FunctionType>(reject: any, res: any, options?: IAsyncParams<T>): void;
@@ -0,0 +1,5 @@
1
+ export declare const READ_IMAGEVIDEO_PERMISSIONS = "ohos.permission.READ_IMAGEVIDEO";
2
+ export declare const READ_MEDIA_PERMISSIONS = "ohos.permission.READ_MEDIA";
3
+ export declare const WRITE_MEDIA_PERMISSIONS = "ohos.permission.WRITE_MEDIA";
4
+ export declare const MEDIA_LOCATION_PERMISSIONS = "ohos.permission.MEDIA_LOCATION";
5
+ export declare const IMAGE_PERMISSION: string[];
@@ -0,0 +1,11 @@
1
+ type GeneralCallback = (res: any) => void;
2
+ export type FunctionType = (...args: any) => any;
3
+ export interface IAsyncParams<T extends FunctionType = GeneralCallback> {
4
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
5
+ complete?: GeneralCallback;
6
+ /** 接口调用失败的回调函数 */
7
+ fail?: GeneralCallback;
8
+ /** 接口调用成功的回调函数 */
9
+ success?: T;
10
+ }
11
+ export {};