@ledvance/base 1.2.83 → 1.2.85

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 (165) hide show
  1. package/.babelrc +31 -31
  2. package/.eslintignore +5 -5
  3. package/.eslintrc.js +27 -27
  4. package/.prettierrc.js +1 -1
  5. package/.versionrc +5 -5
  6. package/localazy.json +851 -848
  7. package/localazy.keys.json +4 -4
  8. package/package.json +74 -74
  9. package/rn-cli.config.js +8 -8
  10. package/src/api/native.d.ts +71 -71
  11. package/src/api/native.ts +423 -423
  12. package/src/api/nativeEventEmitter.d.ts +3 -3
  13. package/src/api/nativeEventEmitter.ts +125 -125
  14. package/src/components/AdvanceCard.d.ts +25 -25
  15. package/src/components/AdvanceCard.tsx +117 -117
  16. package/src/components/AdvanceList.d.ts +9 -9
  17. package/src/components/AdvanceList.tsx +69 -69
  18. package/src/components/ApplyForDeviceItem.d.ts +6 -6
  19. package/src/components/ApplyForDeviceItem.tsx +83 -83
  20. package/src/components/ApplyForDeviceList.d.ts +7 -7
  21. package/src/components/ApplyForDeviceList.tsx +61 -61
  22. package/src/components/ApplyForText.d.ts +6 -6
  23. package/src/components/ApplyForText.tsx +52 -52
  24. package/src/components/Card.d.ts +10 -10
  25. package/src/components/Card.tsx +40 -40
  26. package/src/components/Cell.d.ts +21 -21
  27. package/src/components/Cell.tsx +69 -69
  28. package/src/components/CircularProgress.d.ts +8 -8
  29. package/src/components/CircularProgress.tsx +42 -42
  30. package/src/components/ColorAdjustView.d.ts +12 -12
  31. package/src/components/ColorAdjustView.tsx +64 -64
  32. package/src/components/ColorExtractor.d.ts +73 -73
  33. package/src/components/ColorExtractor.tsx +374 -374
  34. package/src/components/ColorTempAdjustView.d.ts +13 -13
  35. package/src/components/ColorTempAdjustView.tsx +57 -57
  36. package/src/components/ColorsLine.d.ts +7 -7
  37. package/src/components/ColorsLine.tsx +47 -47
  38. package/src/components/CustomListDialog.d.ts +15 -15
  39. package/src/components/CustomListDialog.tsx +66 -66
  40. package/src/components/DeleteButton.d.ts +10 -10
  41. package/src/components/DeleteButton.tsx +40 -40
  42. package/src/components/Dialog.d.ts +10 -10
  43. package/src/components/Dialog.tsx +38 -38
  44. package/src/components/DrawToolView.d.ts +46 -46
  45. package/src/components/DrawToolView.tsx +262 -262
  46. package/src/components/FanAdjustView.d.ts +23 -23
  47. package/src/components/FanAdjustView.tsx +141 -141
  48. package/src/components/InfoText.d.ts +11 -11
  49. package/src/components/InfoText.tsx +45 -45
  50. package/src/components/LampAdjustView.d.ts +10 -10
  51. package/src/components/LampAdjustView.tsx +75 -75
  52. package/src/components/LampAdjustView2.d.ts +24 -24
  53. package/src/components/LampAdjustView2.tsx +104 -104
  54. package/src/components/LinearGradientLine.d.ts +9 -9
  55. package/src/components/LinearGradientLine.tsx +63 -63
  56. package/src/components/LoadingView.tsx +39 -39
  57. package/src/components/MoodColorsLine.d.ts +9 -9
  58. package/src/components/MoodColorsLine.tsx +38 -38
  59. package/src/components/Page.d.ts +21 -21
  60. package/src/components/Page.tsx +104 -104
  61. package/src/components/Popup.d.ts +7 -7
  62. package/src/components/Popup.tsx +71 -71
  63. package/src/components/Segmented.d.ts +14 -14
  64. package/src/components/Segmented.tsx +76 -76
  65. package/src/components/ShowSelect.d.ts +1 -1
  66. package/src/components/ShowSelect.tsx +158 -158
  67. package/src/components/SocketItem.d.ts +13 -13
  68. package/src/components/SocketItem.tsx +87 -87
  69. package/src/components/Spacer.d.ts +7 -7
  70. package/src/components/Spacer.tsx +13 -13
  71. package/src/components/Stepper.d.ts +19 -19
  72. package/src/components/Stepper.tsx +130 -130
  73. package/src/components/StripAdjustView.d.ts +16 -16
  74. package/src/components/StripAdjustView.tsx +129 -129
  75. package/src/components/StripLightView.d.ts +14 -14
  76. package/src/components/StripLightView.tsx +24 -24
  77. package/src/components/Summary.tsx +116 -116
  78. package/src/components/Tag.d.ts +8 -8
  79. package/src/components/Tag.tsx +56 -56
  80. package/src/components/TextButton.d.ts +9 -9
  81. package/src/components/TextButton.tsx +31 -31
  82. package/src/components/TextField.d.ts +9 -9
  83. package/src/components/TextField.tsx +92 -92
  84. package/src/components/TextFieldStyleButton.d.ts +8 -8
  85. package/src/components/TextFieldStyleButton.tsx +85 -85
  86. package/src/components/UATabTitle.d.ts +6 -6
  87. package/src/components/UATabTitle.tsx +31 -31
  88. package/src/components/UATabs.d.ts +12 -12
  89. package/src/components/UATabs.tsx +77 -77
  90. package/src/components/connect.d.ts +10 -10
  91. package/src/components/connect.tsx +20 -20
  92. package/src/components/ldvColorBrightness.d.ts +1 -1
  93. package/src/components/ldvColorBrightness.tsx +18 -18
  94. package/src/components/ldvColorSlider.d.ts +14 -14
  95. package/src/components/ldvColorSlider.tsx +131 -131
  96. package/src/components/ldvItemView.d.ts +12 -12
  97. package/src/components/ldvItemView.tsx +43 -43
  98. package/src/components/ldvPickerView.d.ts +13 -13
  99. package/src/components/ldvPickerView.tsx +97 -97
  100. package/src/components/ldvPresetView.d.ts +2 -2
  101. package/src/components/ldvPresetView.tsx +86 -86
  102. package/src/components/ldvSaturation.d.ts +2 -2
  103. package/src/components/ldvSaturation.tsx +22 -22
  104. package/src/components/ldvSlider.d.ts +15 -15
  105. package/src/components/ldvSlider.tsx +103 -103
  106. package/src/components/ldvSwitch.d.ts +10 -10
  107. package/src/components/ldvSwitch.tsx +52 -52
  108. package/src/components/ldvTemperatureSlider.d.ts +13 -13
  109. package/src/components/ldvTemperatureSlider.tsx +139 -139
  110. package/src/components/ldvTopBar.d.ts +10 -10
  111. package/src/components/ldvTopBar.tsx +76 -76
  112. package/src/components/ldvTopName.d.ts +9 -9
  113. package/src/components/ldvTopName.tsx +63 -63
  114. package/src/components/segmentControl.d.ts +1 -1
  115. package/src/components/segmentControl.tsx +65 -65
  116. package/src/components/weekSelect.d.ts +7 -7
  117. package/src/components/weekSelect.tsx +98 -98
  118. package/src/composeLayout.d.ts +30 -30
  119. package/src/composeLayout.tsx +261 -261
  120. package/src/config/dark-theme.ts +61 -61
  121. package/src/config/light-theme.ts +61 -61
  122. package/src/hooks/Hooks.d.ts +2 -2
  123. package/src/hooks/Hooks.ts +8 -8
  124. package/src/i18n/index.d.ts +16 -16
  125. package/src/i18n/index.ts +37 -37
  126. package/src/i18n/strings.d.ts +15953 -15953
  127. package/src/i18n/strings.ts +23781 -23723
  128. package/src/main.tsx +9 -9
  129. package/src/models/GlobalParams.d.ts +14 -14
  130. package/src/models/GlobalParams.ts +14 -14
  131. package/src/models/TuyaApi.d.ts +29 -29
  132. package/src/models/TuyaApi.ts +92 -92
  133. package/src/models/combine.d.ts +26 -26
  134. package/src/models/combine.ts +17 -17
  135. package/src/models/configureStore.d.ts +9 -9
  136. package/src/models/configureStore.ts +33 -33
  137. package/src/models/index.d.ts +31 -31
  138. package/src/models/index.ts +22 -22
  139. package/src/models/modules/NativePropsSlice.d.ts +61 -61
  140. package/src/models/modules/NativePropsSlice.tsx +467 -467
  141. package/src/models/modules/Result.d.ts +14 -14
  142. package/src/models/modules/Result.ts +15 -15
  143. package/src/models/modules/common.d.ts +44 -44
  144. package/src/models/modules/common.ts +161 -161
  145. package/src/res/index.d.ts +70 -70
  146. package/src/res/index.ts +73 -73
  147. package/src/utils/ColorParser.d.ts +66 -66
  148. package/src/utils/ColorParser.ts +189 -189
  149. package/src/utils/ColorUtils.d.ts +71 -71
  150. package/src/utils/ColorUtils.tsx +448 -448
  151. package/src/utils/Support.d.ts +13 -13
  152. package/src/utils/Support.ts +108 -108
  153. package/src/utils/TypeUtils.d.ts +3 -3
  154. package/src/utils/cctUtils.d.ts +1 -1
  155. package/src/utils/cctUtils.ts +110 -110
  156. package/src/utils/common.d.ts +35 -35
  157. package/src/utils/common.ts +379 -379
  158. package/src/utils/index.d.ts +26 -26
  159. package/src/utils/index.ts +191 -191
  160. package/src/utils/interface.d.ts +6 -6
  161. package/src/utils/interface.ts +50 -50
  162. package/src/utils/loopsCompare.d.ts +1 -1
  163. package/src/utils/loopsCompare.ts +62 -62
  164. package/tsconfig.json +50 -50
  165. package/update-localazy.py +52 -52
@@ -1,4 +1,4 @@
1
- {
2
- "writeKey": "",
3
- "readKey": "a7349213573288779040-d092b120e7d6d90c7e9528ddf2aa600659f60631bd4a5c2d55de0aa2b081af1b"
4
- }
1
+ {
2
+ "writeKey": "",
3
+ "readKey": "a7349213573288779040-d092b120e7d6d90c7e9528ddf2aa600659f60631bd4a5c2d55de0aa2b081af1b"
4
+ }
package/package.json CHANGED
@@ -1,74 +1,74 @@
1
- {
2
- "rnVersion": "5.30",
3
- "license": "MIT",
4
- "name": "@ledvance/base",
5
- "pid": [],
6
- "uiid": "",
7
- "version": "1.2.83",
8
- "scripts": {
9
- "prepublishOnly": "python update-localazy.py"
10
- },
11
- "dependencies": {
12
- "@reduxjs/toolkit": "^1.8.6",
13
- "@tuya/tuya-panel-api": "^1.12.0",
14
- "ahooks": "^2.x",
15
- "buffer": "^6.0.3",
16
- "dayjs": "^1.11.5",
17
- "events": "^1.1.1",
18
- "lodash": "^4.17.19",
19
- "moment": "^2.20.1",
20
- "prop-types": "^15.6.1",
21
- "react": "16.8.3",
22
- "react-addons-shallow-compare": "^15.6.2",
23
- "react-native": "0.59.10",
24
- "react-native-render-html": "^6.3.4",
25
- "react-native-svg": "5.5.1",
26
- "react-redux": "^7.2.1",
27
- "redux": "^4.0.0",
28
- "redux-actions": "^2.6.1",
29
- "redux-logger": "^3.0.6",
30
- "redux-observable": "^1.0.0",
31
- "redux-thunk": "^2.3.0",
32
- "rn-fetch-blob": "^0.12.0",
33
- "rxjs": "^6.3.1",
34
- "rxjs-compat": "^6.3.1",
35
- "style-equal": "^1.0.0",
36
- "tuya-panel-kit": "^4.9.4"
37
- },
38
- "devDependencies": {
39
- "@babel/plugin-proposal-decorators": "^7.12.1",
40
- "@commitlint/cli": "^11.0.0",
41
- "@tuya/tuya-panel-patches": "^0.59.10",
42
- "@types/lodash": "^4.14.137",
43
- "@types/react": "^16.0.4",
44
- "@types/react-native": "^0.60.0",
45
- "@types/react-redux": "^7.1.2",
46
- "@types/redux": "^3.6.0",
47
- "@types/redux-actions": "^2.6.1",
48
- "@types/redux-logger": "^3.0.7",
49
- "@types/tuya-panel-kit": "^4.7.3",
50
- "babel-jest": "^22.1.0",
51
- "babel-plugin-import": "^1.11.0",
52
- "babel-plugin-module-resolver": "^4.0.0",
53
- "babel-plugin-transform-decorators-legacy": "^1.3.4",
54
- "babel-plugin-transform-remove-console": "^6.9.4",
55
- "commitizen": "^4.2.2",
56
- "commitlint-config-cz": "^0.13.2",
57
- "cz-customizable": "^6.3.0",
58
- "eslint-config-airbnb": "^18.2.1",
59
- "eslint-config-tuya": "^1.0.0",
60
- "eslint-import-resolver-alias": "^1.1.2",
61
- "eslint-import-resolver-react-native": "^0.2.0",
62
- "eslint-plugin-react-native": "^3.10.0",
63
- "husky": "^4.3.0",
64
- "jest": "^22.1.1",
65
- "metro-react-native-babel-preset": "^0.63.0",
66
- "react-native-typescript-transformer": "^1.2.13",
67
- "react-test-renderer": "^16.2.0",
68
- "standard-version": "^9.0.0",
69
- "typescript": "^4.1.2"
70
- },
71
- "jest": {
72
- "preset": "react-native"
73
- }
74
- }
1
+ {
2
+ "rnVersion": "5.30",
3
+ "license": "MIT",
4
+ "name": "@ledvance/base",
5
+ "pid": [],
6
+ "uiid": "",
7
+ "version": "1.2.85",
8
+ "scripts": {
9
+ "prepublishOnly": "python update-localazy.py"
10
+ },
11
+ "dependencies": {
12
+ "@reduxjs/toolkit": "^1.8.6",
13
+ "@tuya/tuya-panel-api": "^1.12.0",
14
+ "ahooks": "^2.x",
15
+ "buffer": "^6.0.3",
16
+ "dayjs": "^1.11.5",
17
+ "events": "^1.1.1",
18
+ "lodash": "^4.17.19",
19
+ "moment": "^2.20.1",
20
+ "prop-types": "^15.6.1",
21
+ "react": "16.8.3",
22
+ "react-addons-shallow-compare": "^15.6.2",
23
+ "react-native": "0.59.10",
24
+ "react-native-render-html": "^6.3.4",
25
+ "react-native-svg": "5.5.1",
26
+ "react-redux": "^7.2.1",
27
+ "redux": "^4.0.0",
28
+ "redux-actions": "^2.6.1",
29
+ "redux-logger": "^3.0.6",
30
+ "redux-observable": "^1.0.0",
31
+ "redux-thunk": "^2.3.0",
32
+ "rn-fetch-blob": "^0.12.0",
33
+ "rxjs": "^6.3.1",
34
+ "rxjs-compat": "^6.3.1",
35
+ "style-equal": "^1.0.0",
36
+ "tuya-panel-kit": "^4.9.4"
37
+ },
38
+ "devDependencies": {
39
+ "@babel/plugin-proposal-decorators": "^7.12.1",
40
+ "@commitlint/cli": "^11.0.0",
41
+ "@tuya/tuya-panel-patches": "^0.59.10",
42
+ "@types/lodash": "^4.14.137",
43
+ "@types/react": "^16.0.4",
44
+ "@types/react-native": "^0.60.0",
45
+ "@types/react-redux": "^7.1.2",
46
+ "@types/redux": "^3.6.0",
47
+ "@types/redux-actions": "^2.6.1",
48
+ "@types/redux-logger": "^3.0.7",
49
+ "@types/tuya-panel-kit": "^4.7.3",
50
+ "babel-jest": "^22.1.0",
51
+ "babel-plugin-import": "^1.11.0",
52
+ "babel-plugin-module-resolver": "^4.0.0",
53
+ "babel-plugin-transform-decorators-legacy": "^1.3.4",
54
+ "babel-plugin-transform-remove-console": "^6.9.4",
55
+ "commitizen": "^4.2.2",
56
+ "commitlint-config-cz": "^0.13.2",
57
+ "cz-customizable": "^6.3.0",
58
+ "eslint-config-airbnb": "^18.2.1",
59
+ "eslint-config-tuya": "^1.0.0",
60
+ "eslint-import-resolver-alias": "^1.1.2",
61
+ "eslint-import-resolver-react-native": "^0.2.0",
62
+ "eslint-plugin-react-native": "^3.10.0",
63
+ "husky": "^4.3.0",
64
+ "jest": "^22.1.1",
65
+ "metro-react-native-babel-preset": "^0.63.0",
66
+ "react-native-typescript-transformer": "^1.2.13",
67
+ "react-test-renderer": "^16.2.0",
68
+ "standard-version": "^9.0.0",
69
+ "typescript": "^4.1.2"
70
+ },
71
+ "jest": {
72
+ "preset": "react-native"
73
+ }
74
+ }
package/rn-cli.config.js CHANGED
@@ -1,8 +1,8 @@
1
- module.exports = {
2
- getTransformModulePath() {
3
- return require.resolve('react-native-typescript-transformer');
4
- },
5
- getSourceExts() {
6
- return ['ts', 'tsx'];
7
- },
8
- };
1
+ module.exports = {
2
+ getTransformModulePath() {
3
+ return require.resolve('react-native-typescript-transformer');
4
+ },
5
+ getSourceExts() {
6
+ return ['ts', 'tsx'];
7
+ },
8
+ };
@@ -1,71 +1,71 @@
1
- import { NativeResult, Result } from '../models/modules/Result';
2
- export declare enum UADeviceCategory {
3
- ThirdParty = "ThirdParty",
4
- General = "General",
5
- LightSource = "LightSource",
6
- CeilingLight = "CeilingLight",
7
- CeilingFan = "CeilingFan",
8
- SterilizedCeilingFan = "SterilizedCeilingFan",
9
- PIRLight = "PIRLight",
10
- SolarLight = "SolarLight",
11
- StringLights = "StringLights",
12
- StripLights = "StripLights",
13
- PowerStrip = "PowerStrip",
14
- NightlightPlug = "NightlightPlug",
15
- WifiPlug = "WifiPlug",
16
- ChildLockPlug = "ChildLockPlug",
17
- RepeaterSocket = "RepeaterSocket",
18
- ContactSensor = "ContactSensor",
19
- MotionDetector = "MotionDetector",
20
- PIRCamera = "PIRCamera",
21
- LinkageCamera = "LinkageCamera",
22
- SmartCamera = "SmartCamera",
23
- MatterLight = "MatterLight",
24
- MeshLight = "MeshLight",
25
- MeshSwitch = "MeshSwitch"
26
- }
27
- export interface DeviceInfo {
28
- deviceId: string;
29
- deviceName: string;
30
- deviceIcon: string;
31
- tyPid: string;
32
- deviceCategory: UADeviceCategory;
33
- roomName: string;
34
- status: number;
35
- }
36
- declare type GetFeatureResultType = (deviceId: string, featureId: string) => Promise<NativeResult<any>>;
37
- declare type SetFeatureResultType = (deviceId: string, featureId: string, value: any) => Promise<NativeResult<any>>;
38
- export declare const getFeature: GetFeatureResultType;
39
- export declare const putFeature: SetFeatureResultType;
40
- export declare class NativeApi {
41
- static back(): void;
42
- static log(msg: string): void;
43
- static logObj(msg: any): void;
44
- static showObj(obj: any): void;
45
- static getAllTaskTimer(devId: string, type?: number): Promise<Result<any>>;
46
- static timerList(deviceId: string): Promise<any>;
47
- static addTimer(deviceId: string, value: any, callback?: (res: any) => void): void;
48
- static editTimer(deviceId: string, value: any, callback?: (res: any) => void): void;
49
- static deleteTimer(deviceId: string, value: any, callback?: (res: any) => void): void;
50
- static setDp<T>(deviceId: string, key: string, value: any): Promise<NativeResult<T>>;
51
- static setDps<T>(deviceId: string, dps: any): Promise<NativeResult<T>>;
52
- static deleteDevice(deviceId: string, isReset: boolean): Promise<NativeResult<any>>;
53
- static renameDevice(deviceId: string, name: string): Promise<NativeResult<any>>;
54
- static toDeviceSettingsPage(deviceId: string, isGroup?: boolean): void;
55
- static toRoutinesPage(params: {
56
- backTitle: string;
57
- deviceId: string;
58
- }): void;
59
- static putJson(deviceId: string, featureType: string, json: string): Promise<Result<any>>;
60
- static getJson(deviceId: string, featureType: string): Promise<Result<any>>;
61
- static groupControl(tyGroupId: number, dps: string, config: string): Promise<Result<any>>;
62
- static getGroupDevices(tyGroupId: number): Promise<Result<DeviceInfo[]>>;
63
- }
64
- export declare const openDownloadFile: (filePath: string) => Promise<unknown>;
65
- export declare const queryDpIds: (dpIds: string, deviceId: string) => Promise<unknown>;
66
- export declare const formatNumber: (num: number, fixed: number, shoGroup?: boolean) => string;
67
- export declare const getTimeZone: () => string;
68
- export declare const getSystemTimeFormat: () => Promise<number>;
69
- export declare const getMicrophoneAccess: () => Promise<boolean>;
70
- export declare const getTuyaCloudData: (devId: string) => Promise<Record<string, any>>;
71
- export {};
1
+ import { NativeResult, Result } from '../models/modules/Result';
2
+ export declare enum UADeviceCategory {
3
+ ThirdParty = "ThirdParty",
4
+ General = "General",
5
+ LightSource = "LightSource",
6
+ CeilingLight = "CeilingLight",
7
+ CeilingFan = "CeilingFan",
8
+ SterilizedCeilingFan = "SterilizedCeilingFan",
9
+ PIRLight = "PIRLight",
10
+ SolarLight = "SolarLight",
11
+ StringLights = "StringLights",
12
+ StripLights = "StripLights",
13
+ PowerStrip = "PowerStrip",
14
+ NightlightPlug = "NightlightPlug",
15
+ WifiPlug = "WifiPlug",
16
+ ChildLockPlug = "ChildLockPlug",
17
+ RepeaterSocket = "RepeaterSocket",
18
+ ContactSensor = "ContactSensor",
19
+ MotionDetector = "MotionDetector",
20
+ PIRCamera = "PIRCamera",
21
+ LinkageCamera = "LinkageCamera",
22
+ SmartCamera = "SmartCamera",
23
+ MatterLight = "MatterLight",
24
+ MeshLight = "MeshLight",
25
+ MeshSwitch = "MeshSwitch"
26
+ }
27
+ export interface DeviceInfo {
28
+ deviceId: string;
29
+ deviceName: string;
30
+ deviceIcon: string;
31
+ tyPid: string;
32
+ deviceCategory: UADeviceCategory;
33
+ roomName: string;
34
+ status: number;
35
+ }
36
+ declare type GetFeatureResultType = (deviceId: string, featureId: string) => Promise<NativeResult<any>>;
37
+ declare type SetFeatureResultType = (deviceId: string, featureId: string, value: any) => Promise<NativeResult<any>>;
38
+ export declare const getFeature: GetFeatureResultType;
39
+ export declare const putFeature: SetFeatureResultType;
40
+ export declare class NativeApi {
41
+ static back(): void;
42
+ static log(msg: string): void;
43
+ static logObj(msg: any): void;
44
+ static showObj(obj: any): void;
45
+ static getAllTaskTimer(devId: string, type?: number): Promise<Result<any>>;
46
+ static timerList(deviceId: string): Promise<any>;
47
+ static addTimer(deviceId: string, value: any, callback?: (res: any) => void): void;
48
+ static editTimer(deviceId: string, value: any, callback?: (res: any) => void): void;
49
+ static deleteTimer(deviceId: string, value: any, callback?: (res: any) => void): void;
50
+ static setDp<T>(deviceId: string, key: string, value: any): Promise<NativeResult<T>>;
51
+ static setDps<T>(deviceId: string, dps: any): Promise<NativeResult<T>>;
52
+ static deleteDevice(deviceId: string, isReset: boolean): Promise<NativeResult<any>>;
53
+ static renameDevice(deviceId: string, name: string): Promise<NativeResult<any>>;
54
+ static toDeviceSettingsPage(deviceId: string, isGroup?: boolean): void;
55
+ static toRoutinesPage(params: {
56
+ backTitle: string;
57
+ deviceId: string;
58
+ }): void;
59
+ static putJson(deviceId: string, featureType: string, json: string): Promise<Result<any>>;
60
+ static getJson(deviceId: string, featureType: string): Promise<Result<any>>;
61
+ static groupControl(tyGroupId: number, dps: string, config: string): Promise<Result<any>>;
62
+ static getGroupDevices(tyGroupId: number): Promise<Result<DeviceInfo[]>>;
63
+ }
64
+ export declare const openDownloadFile: (filePath: string) => Promise<unknown>;
65
+ export declare const queryDpIds: (dpIds: string, deviceId: string) => Promise<unknown>;
66
+ export declare const formatNumber: (num: number, fixed: number, shoGroup?: boolean) => string;
67
+ export declare const getTimeZone: () => string;
68
+ export declare const getSystemTimeFormat: () => Promise<number>;
69
+ export declare const getMicrophoneAccess: () => Promise<boolean>;
70
+ export declare const getTuyaCloudData: (devId: string) => Promise<Record<string, any>>;
71
+ export {};