@ledvance/base 1.1.42 → 1.1.44

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 (50) hide show
  1. package/.temp/uaDevInfo.txt +51 -0
  2. package/package.json +1 -1
  3. package/src/api/native.d.ts +30 -3
  4. package/src/api/native.ts +31 -3
  5. package/src/components/Card.d.ts +1 -1
  6. package/src/components/Cell.d.ts +2 -2
  7. package/src/components/ColorAdjustView.d.ts +1 -1
  8. package/src/components/ColorExtractor.d.ts +1 -1
  9. package/src/components/ColorTempAdjustView.d.ts +1 -1
  10. package/src/components/ColorsLine.d.ts +1 -1
  11. package/src/components/CustomListDialog.d.ts +1 -1
  12. package/src/components/DeleteButton.d.ts +1 -1
  13. package/src/components/Dialog.d.ts +1 -1
  14. package/src/components/FanAdjustView.d.ts +1 -1
  15. package/src/components/InfoText.d.ts +1 -1
  16. package/src/components/LampAdjustView.d.ts +1 -1
  17. package/src/components/LinearGradientLine.d.ts +1 -1
  18. package/src/components/MoodColorsLine.d.ts +2 -2
  19. package/src/components/Page.d.ts +1 -1
  20. package/src/components/Segmented.d.ts +1 -1
  21. package/src/components/Spacer.d.ts +1 -1
  22. package/src/components/Tag.d.ts +1 -1
  23. package/src/components/TextButton.d.ts +1 -1
  24. package/src/components/TextField.d.ts +1 -1
  25. package/src/components/TextFieldStyleButton.d.ts +1 -1
  26. package/src/components/connect.d.ts +9 -1
  27. package/src/components/ldvColorBrightness.d.ts +1 -1
  28. package/src/components/ldvColorSlider.d.ts +1 -1
  29. package/src/components/ldvPickerView.d.ts +1 -1
  30. package/src/components/ldvPresetView.d.ts +1 -1
  31. package/src/components/ldvSaturation.d.ts +1 -1
  32. package/src/components/ldvSlider.d.ts +1 -1
  33. package/src/components/ldvSwitch.d.ts +1 -1
  34. package/src/components/ldvTemperatureSlider.d.ts +1 -1
  35. package/src/components/ldvTopBar.d.ts +1 -1
  36. package/src/components/ldvTopName.d.ts +1 -1
  37. package/src/components/segmentControl.d.ts +1 -1
  38. package/src/components/weekSelect.d.ts +1 -1
  39. package/src/i18n/index.d.ts +1 -1
  40. package/src/i18n/strings.d.ts +280 -0
  41. package/src/models/combine.d.ts +21 -8
  42. package/src/models/configureStore.d.ts +8 -1
  43. package/src/models/index.d.ts +23 -8
  44. package/src/models/modules/NativePropsSlice.d.ts +8 -7
  45. package/src/models/modules/NativePropsSlice.tsx +6 -6
  46. package/src/models/modules/common.d.ts +21 -13
  47. package/src/utils/ColorParser.d.ts +3 -3
  48. package/src/utils/ColorUtils.d.ts +1 -1
  49. package/src/utils/cctUtils.d.ts +1 -1
  50. package/src/utils/common.d.ts +2 -2
@@ -0,0 +1,51 @@
1
+ @ColumnInfo(name = "device_id")
2
+ val deviceId: String,
3
+ @ColumnInfo(name = "device_name")
4
+ val deviceName: String,
5
+ @ColumnInfo(name = "cat_id")
6
+ val catId: String,
7
+ @ColumnInfo(name = "channel_no")
8
+ val channelNo: Int,
9
+ @ColumnInfo(name = "device_category")
10
+ val deviceCategory: String,
11
+ @ColumnInfo(name = "device_image")
12
+ val deviceImage: String,
13
+ @ColumnInfo(name = "tuya_device_id")
14
+ val tuyaDeviceId: String,
15
+ // deviceType 对应 ProductInfo 的 productId
16
+ @ColumnInfo(name = "device_type")
17
+ val deviceType: String,
18
+ @ColumnInfo(name = "offline_time")
19
+ val offlineTime: String,
20
+ @ColumnInfo(name = "rn_package")
21
+ val rnPackage: String?,
22
+ @ColumnInfo(name = "status")
23
+ val status: Int,
24
+ @ColumnInfo(name = "create_time")
25
+ val createTime: String,
26
+ @ColumnInfo(name = "version")
27
+ val version: String,
28
+ @ColumnInfo(name = "user_id")
29
+ val userId: String,
30
+ @ColumnInfo(name = "family_id")
31
+ val familyId: Long,
32
+ @ColumnInfo(name = "room_id")
33
+ val roomId: Long,
34
+ @ColumnInfo(name = "room_name")
35
+ val roomName: String,
36
+ @ColumnInfo(name = "is_shared")
37
+ val isShared: Int,
38
+ @ColumnInfo(name = "local_index")
39
+ val localIndex: String,
40
+ @ColumnInfo(name = "resource_category")
41
+ val resourceCategory: String,
42
+ @ColumnInfo(name = "resource_id")
43
+ val resourceId: String,
44
+ @ColumnInfo(name = "resource_identifier")
45
+ val resourceIdentifier: String,
46
+ @ColumnInfo(name = "resource_type")
47
+ val resourceType: Int,
48
+ @ColumnInfo(name = "index")
49
+ val index: Int = 0,
50
+ @ColumnInfo(name = "switch_state")
51
+ val switchState: Boolean = true
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.42",
7
+ "version": "1.1.44",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@reduxjs/toolkit": "^1.8.6",
@@ -1,13 +1,40 @@
1
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
+ }
2
27
  export interface DeviceInfo {
3
28
  deviceId: string;
4
29
  deviceName: string;
5
30
  deviceIcon: string;
31
+ tyPid: string;
32
+ deviceCategory: UADeviceCategory;
6
33
  roomName: string;
7
34
  status: number;
8
35
  }
9
- type GetFeatureResultType = (deviceId: string, featureId: string) => Promise<NativeResult<any>>;
10
- type SetFeatureResultType = (deviceId: string, featureId: string, value: any) => Promise<NativeResult<any>>;
36
+ declare type GetFeatureResultType = (deviceId: string, featureId: string) => Promise<NativeResult<any>>;
37
+ declare type SetFeatureResultType = (deviceId: string, featureId: string, value: any) => Promise<NativeResult<any>>;
11
38
  export declare const getFeature: GetFeatureResultType;
12
39
  export declare const putFeature: SetFeatureResultType;
13
40
  export declare class NativeApi {
@@ -32,7 +59,7 @@ export declare class NativeApi {
32
59
  }
33
60
  export declare const openDownloadFile: (filePath: string) => Promise<unknown>;
34
61
  export declare const queryDpIds: (dpIds: string, deviceId: string) => Promise<unknown>;
35
- export declare const formatNumber: (num: number, fixed: number) => string;
62
+ export declare const formatNumber: (num: number, fixed: number, isCN: boolean) => string;
36
63
  export declare const getTimeZone: () => string;
37
64
  export declare const getSystemTimeFormat: () => Promise<number>;
38
65
  export {};
package/src/api/native.ts CHANGED
@@ -13,7 +13,7 @@ interface LDVDevicePanelManager {
13
13
  getJson: (deviceId: string, featureType: string, callback: (res: NativeResult<string>) => void) => void
14
14
  getInitiativeQueryDpsInfoWithDpsArray: (dpIds: string, deviceId: string, callback: (res: NativeResult<string>) => void) => void
15
15
  openDownloadFile: (filePath: string) => void
16
- formatNumber: (num: number, fixed: number) => string
16
+ formatNumber: (num: number, fixed: number, isCN: boolean) => string
17
17
  getTimeZone: () => string
18
18
  groupControl: (tyGroupId: number, dps: string, config: string) => Promise<NativeResult<any>>
19
19
  getFeature: (deviceId: string, featureId: string, callback: (res: NativeResult<string>) => void) => void
@@ -22,10 +22,38 @@ interface LDVDevicePanelManager {
22
22
  getSystemTimeFormat: () => Promise<number>
23
23
  }
24
24
 
25
+ export enum UADeviceCategory {
26
+ ThirdParty = 'ThirdParty',
27
+ General = 'General',
28
+ LightSource = 'LightSource',
29
+ CeilingLight = 'CeilingLight',
30
+ CeilingFan = 'CeilingFan',
31
+ SterilizedCeilingFan = 'SterilizedCeilingFan',
32
+ PIRLight = 'PIRLight',
33
+ SolarLight = 'SolarLight',
34
+ StringLights = 'StringLights',
35
+ StripLights = 'StripLights',
36
+ PowerStrip = 'PowerStrip',
37
+ NightlightPlug = 'NightlightPlug',
38
+ WifiPlug = 'WifiPlug',
39
+ ChildLockPlug = 'ChildLockPlug',
40
+ RepeaterSocket = 'RepeaterSocket',
41
+ ContactSensor = 'ContactSensor',
42
+ MotionDetector = 'MotionDetector',
43
+ PIRCamera = 'PIRCamera',
44
+ LinkageCamera = 'LinkageCamera',
45
+ SmartCamera = 'SmartCamera',
46
+ MatterLight = 'MatterLight',
47
+ MeshLight = 'MeshLight',
48
+ MeshSwitch = 'MeshSwitch',
49
+ }
50
+
25
51
  export interface DeviceInfo {
26
52
  deviceId: string
27
53
  deviceName: string
28
54
  deviceIcon: string
55
+ tyPid: string
56
+ deviceCategory: UADeviceCategory
29
57
  roomName: string
30
58
  status: number
31
59
  }
@@ -291,8 +319,8 @@ export const queryDpIds = (dpIds: string, deviceId: string) => {
291
319
  })
292
320
  }
293
321
 
294
- export const formatNumber: (num: number, fixed: number) => string = (num, fixed) => {
295
- const res = devicePanel.formatNumber(num, fixed)
322
+ export const formatNumber: (num: number, fixed: number, isCN: boolean) => string = (num, fixed, isCN: boolean = false) => {
323
+ const res = devicePanel.formatNumber(num, fixed, isCN)
296
324
  log(`formatNumber: num=${num}, fixed=${fixed}, res=${res}`)
297
325
  return res
298
326
  }
@@ -6,5 +6,5 @@ interface CardProps extends PropsWithChildren<ViewProps> {
6
6
  onLongPress?: () => void;
7
7
  containerStyle?: StyleProp<ViewStyle>;
8
8
  }
9
- export default function Card(props: CardProps): any;
9
+ export default function Card(props: CardProps): JSX.Element;
10
10
  export {};
@@ -5,7 +5,7 @@ interface CellProps {
5
5
  onPress: () => void;
6
6
  style?: StyleProp<ViewStyle>;
7
7
  }
8
- export default function Cell(props: CellProps): any;
8
+ export default function Cell(props: CellProps): JSX.Element;
9
9
  interface CellContentProps {
10
10
  title: string;
11
11
  value: string;
@@ -17,5 +17,5 @@ interface CellContentProps {
17
17
  size?: number;
18
18
  };
19
19
  }
20
- export declare function CellContent(props: CellContentProps): any;
20
+ export declare function CellContent(props: CellContentProps): JSX.Element;
21
21
  export {};
@@ -5,5 +5,5 @@ export interface ColorAdjustViewProps {
5
5
  onHSVChange?: (h: number, s: number, v: number) => void;
6
6
  onHSVChangeComplete: (h: number, s: number, v: number) => void;
7
7
  }
8
- declare const ColorAdjustView: (props: ColorAdjustViewProps) => any;
8
+ declare const ColorAdjustView: (props: ColorAdjustViewProps) => JSX.Element;
9
9
  export default ColorAdjustView;
@@ -27,7 +27,7 @@ export default class ColorExtractor extends Component<any> {
27
27
  y: number;
28
28
  };
29
29
  updateColor(x: any, y: any, moving: any, isFirst?: boolean): void;
30
- render(): any;
30
+ render(): JSX.Element;
31
31
  }
32
32
  export declare const colorTemperature: {
33
33
  2700: string;
@@ -8,5 +8,5 @@ export interface ColorTempAdjustViewProps {
8
8
  onBrightnessChange?: (brightness: number) => void;
9
9
  onBrightnessChangeComplete: (brightness: number) => void;
10
10
  }
11
- declare const ColorTempAdjustView: (props: ColorTempAdjustViewProps) => any;
11
+ declare const ColorTempAdjustView: (props: ColorTempAdjustViewProps) => JSX.Element;
12
12
  export default ColorTempAdjustView;
@@ -3,5 +3,5 @@ interface ColorsLineProps extends ViewProps {
3
3
  colors: string[];
4
4
  nodeStyle?: StyleProp<ViewStyle>;
5
5
  }
6
- declare const ColorsLine: (props: ColorsLineProps) => any;
6
+ declare const ColorsLine: (props: ColorsLineProps) => JSX.Element;
7
7
  export default ColorsLine;
@@ -10,5 +10,5 @@ interface CustomListDialogProps extends ViewProps {
10
10
  data: ListData[];
11
11
  onItemPress: (item: any | undefined, index: number) => void;
12
12
  }
13
- declare const CustomListDialog: (props: CustomListDialogProps) => any;
13
+ declare const CustomListDialog: (props: CustomListDialogProps) => JSX.Element;
14
14
  export default CustomListDialog;
@@ -5,5 +5,5 @@ interface DeleteButtonProps {
5
5
  style?: StyleProp<ViewStyle>;
6
6
  textStyle?: StyleProp<TextStyle>;
7
7
  }
8
- declare const DeleteButton: (props: DeleteButtonProps) => any;
8
+ declare const DeleteButton: (props: DeleteButtonProps) => JSX.Element;
9
9
  export default DeleteButton;
@@ -6,5 +6,5 @@ interface DialogProps extends PropsWithChildren<ViewProps> {
6
6
  animationType?: 'none' | 'slide' | 'fade';
7
7
  onRequestClose: () => void;
8
8
  }
9
- declare const Dialog: (props: DialogProps) => any;
9
+ declare const Dialog: (props: DialogProps) => JSX.Element;
10
10
  export default Dialog;
@@ -18,5 +18,5 @@ interface FanAdjustViewProps extends ViewProps {
18
18
  onFanSpeedChange?: (fanSpeed: number) => void;
19
19
  onFanSpeedChangeComplete: (fanSpeed: number) => void;
20
20
  }
21
- declare const FanAdjustView: (props: FanAdjustViewProps) => any;
21
+ declare const FanAdjustView: (props: FanAdjustViewProps) => JSX.Element;
22
22
  export default FanAdjustView;
@@ -6,5 +6,5 @@ interface InfoTextProps extends ViewProps {
6
6
  iconStyle?: StyleProp<ImageStyle>;
7
7
  textStyle?: StyleProp<TextStyle>;
8
8
  }
9
- declare const InfoText: (props: InfoTextProps) => any;
9
+ declare const InfoText: (props: InfoTextProps) => JSX.Element;
10
10
  export default InfoText;
@@ -9,5 +9,5 @@ interface LampConfigViewProps extends ColorAdjustViewProps, ColorTempAdjustViewP
9
9
  isColorMode: boolean;
10
10
  setIsColorMode: (isColorMode: boolean) => void;
11
11
  }
12
- declare const LampAdjustView: (props: LampConfigViewProps) => any;
12
+ declare const LampAdjustView: (props: LampConfigViewProps) => JSX.Element;
13
13
  export default LampAdjustView;
@@ -5,5 +5,5 @@ interface LinearGradientLineProps extends StyleProp<any> {
5
5
  colors: string[];
6
6
  orientation?: 'vertical' | 'horizontal';
7
7
  }
8
- declare const LinearGradientLine: (props: LinearGradientLineProps) => any;
8
+ declare const LinearGradientLine: (props: LinearGradientLineProps) => JSX.Element;
9
9
  export default LinearGradientLine;
@@ -1,9 +1,9 @@
1
- export type MoodColorsLineType = 'gradient' | 'separate';
1
+ export declare type MoodColorsLineType = 'gradient' | 'separate';
2
2
  interface MoodColorsLineProps {
3
3
  width?: number;
4
4
  height?: number;
5
5
  type: MoodColorsLineType;
6
6
  colors: string[];
7
7
  }
8
- export default function MoodColorsLine(props: MoodColorsLineProps): any;
8
+ export default function MoodColorsLine(props: MoodColorsLineProps): JSX.Element;
9
9
  export {};
@@ -17,5 +17,5 @@ interface PageProps extends PropsWithChildren<ViewProps> {
17
17
  greeneryIcon?: string | undefined | number;
18
18
  loading?: boolean;
19
19
  }
20
- declare const Page: (props: PageProps) => any;
20
+ declare const Page: (props: PageProps) => JSX.Element;
21
21
  export default Page;
@@ -10,5 +10,5 @@ interface SegmentedProps {
10
10
  onChange?: (v: string) => void;
11
11
  style?: ViewStyle;
12
12
  }
13
- declare const Segmented: (props: SegmentedProps) => any;
13
+ declare const Segmented: (props: SegmentedProps) => JSX.Element;
14
14
  export default Segmented;
@@ -3,5 +3,5 @@ interface SpacerProps extends ViewProps {
3
3
  width?: number;
4
4
  height?: number;
5
5
  }
6
- export default function Spacer(props: SpacerProps): any;
6
+ export default function Spacer(props: SpacerProps): JSX.Element;
7
7
  export {};
@@ -4,5 +4,5 @@ interface TagProps extends ViewProps {
4
4
  text: string;
5
5
  onCheckedChange: (boolean: any) => void;
6
6
  }
7
- declare const Tag: (props: TagProps) => any;
7
+ declare const Tag: (props: TagProps) => JSX.Element;
8
8
  export default Tag;
@@ -5,5 +5,5 @@ interface TextButtonProps {
5
5
  style?: StyleProp<ViewStyle>;
6
6
  textStyle?: StyleProp<TextStyle>;
7
7
  }
8
- export default function TextButton(props: TextButtonProps): any;
8
+ export default function TextButton(props: TextButtonProps): JSX.Element;
9
9
  export {};
@@ -5,5 +5,5 @@ interface TextFieldProps extends TextInputProps {
5
5
  tipIcon?: ImageSourcePropType;
6
6
  tipColor?: string;
7
7
  }
8
- declare const TextField: (props: TextFieldProps) => any;
8
+ declare const TextField: (props: TextFieldProps) => JSX.Element;
9
9
  export default TextField;
@@ -4,5 +4,5 @@ interface TextFieldStyleButtonProps extends ViewProps {
4
4
  text: string;
5
5
  onPress: () => void;
6
6
  }
7
- declare const TextFieldStyleButton: (props: TextFieldStyleButtonProps) => any;
7
+ declare const TextFieldStyleButton: (props: TextFieldStyleButtonProps) => JSX.Element;
8
8
  export default TextFieldStyleButton;
@@ -1,2 +1,10 @@
1
- declare const _default: any;
1
+ import React from 'react';
2
+ declare type ChildrenType = (props: any) => React.ReactElement | null;
3
+ declare const _default: import("react-redux").ConnectedComponent<({ children, ...props }: {
4
+ children: ChildrenType;
5
+ }) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)> | null, Pick<{
6
+ children: ChildrenType;
7
+ }, "children"> & {
8
+ mapStateToProps: any;
9
+ }>;
2
10
  export default _default;
@@ -1 +1 @@
1
- export default function LdvColorBrightness(props: any): any;
1
+ export default function LdvColorBrightness(props: any): JSX.Element;
@@ -10,5 +10,5 @@ interface LdvColorSliderProps {
10
10
  width?: number | undefined;
11
11
  style?: StyleProp<ViewStyle> | undefined;
12
12
  }
13
- declare const LdvColorSlider: (props: LdvColorSliderProps) => any;
13
+ declare const LdvColorSlider: (props: LdvColorSliderProps) => JSX.Element;
14
14
  export default LdvColorSlider;
@@ -7,5 +7,5 @@ interface LdvPickerViewProps {
7
7
  style?: StyleProp<ViewStyle> | undefined;
8
8
  unit?: string[];
9
9
  }
10
- declare const LdvPickerView: (props: LdvPickerViewProps) => any;
10
+ declare const LdvPickerView: (props: LdvPickerViewProps) => JSX.Element;
11
11
  export default LdvPickerView;
@@ -1,2 +1,2 @@
1
- declare const LdvPresetView: (props: any) => any;
1
+ declare const LdvPresetView: (props: any) => JSX.Element;
2
2
  export default LdvPresetView;
@@ -1,2 +1,2 @@
1
- declare const LdvSaturation: (props: any) => any;
1
+ declare const LdvSaturation: (props: any) => JSX.Element;
2
2
  export default LdvSaturation;
@@ -11,5 +11,5 @@ interface LdvSliderProps {
11
11
  subTitleStr?: string;
12
12
  titleStyle?: StyleProp<TextStyle> | undefined;
13
13
  }
14
- declare const LdvSlider: (props: LdvSliderProps) => any;
14
+ declare const LdvSlider: (props: LdvSliderProps) => JSX.Element;
15
15
  export default LdvSlider;
@@ -6,5 +6,5 @@ interface Prop {
6
6
  setEnable: any;
7
7
  showSwitch?: boolean;
8
8
  }
9
- declare const LdvSwitch: (props: Prop) => any;
9
+ declare const LdvSwitch: (props: Prop) => JSX.Element;
10
10
  export default LdvSwitch;
@@ -9,5 +9,5 @@ interface LdvTemperatureSliderProps {
9
9
  titleStyle?: StyleProp<TextProps> | undefined;
10
10
  subTitleStr?: string | undefined;
11
11
  }
12
- declare const LdvTemperatureSlider: (props: LdvTemperatureSliderProps) => any;
12
+ declare const LdvTemperatureSlider: (props: LdvTemperatureSliderProps) => JSX.Element;
13
13
  export default LdvTemperatureSlider;
@@ -6,5 +6,5 @@ interface TopBarProps {
6
6
  rightButtonDisabled?: boolean;
7
7
  onRightButtonPress?: (() => void) | undefined;
8
8
  }
9
- declare const LDVTopBar: (props: TopBarProps) => any;
9
+ declare const LDVTopBar: (props: TopBarProps) => JSX.Element;
10
10
  export default LDVTopBar;
@@ -5,5 +5,5 @@ interface LdvTopNameProps {
5
5
  showGreenery?: boolean;
6
6
  greeneryIcon?: string | undefined | number;
7
7
  }
8
- declare const LdvTopName: (props: LdvTopNameProps) => any;
8
+ declare const LdvTopName: (props: LdvTopNameProps) => JSX.Element;
9
9
  export default LdvTopName;
@@ -1 +1 @@
1
- export default function SegmentControl(props: any): any;
1
+ export default function SegmentControl(props: any): JSX.Element;
@@ -3,5 +3,5 @@ export declare const setDataSource: (loop: any) => {
3
3
  index: number;
4
4
  title: string;
5
5
  }[];
6
- declare const _default: (props: any) => any;
6
+ declare const _default: (props: any) => JSX.Element;
7
7
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { DpValue } from 'tuya-panel-kit';
2
2
  import Strings from './strings';
3
- type Key = keyof typeof Strings.en;
3
+ declare type Key = keyof typeof Strings.en;
4
4
  declare function getLang(key: Key, defaultString?: string): string;
5
5
  declare function getDpLang(code: string, value?: DpValue): string;
6
6
  declare function formatString(key: string, values: string[]): string;
@@ -415,6 +415,16 @@ declare const _default: {
415
415
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
416
416
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
417
417
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
418
+ groups_settings_power_on_behavior_secondbox_topic: string;
419
+ light_settings_default_secondtopic: string;
420
+ light_settings_default_secondbox_text: string;
421
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
422
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
423
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
424
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
425
+ groups_settings_power_on_behavior_disturbbox_note: string;
426
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
427
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
418
428
  };
419
429
  cs: {
420
430
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -832,6 +842,16 @@ declare const _default: {
832
842
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
833
843
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
834
844
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
845
+ groups_settings_power_on_behavior_secondbox_topic: string;
846
+ light_settings_default_secondtopic: string;
847
+ light_settings_default_secondbox_text: string;
848
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
849
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
850
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
851
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
852
+ groups_settings_power_on_behavior_disturbbox_note: string;
853
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
854
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
835
855
  };
836
856
  en: {
837
857
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -1249,6 +1269,16 @@ declare const _default: {
1249
1269
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
1250
1270
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
1251
1271
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
1272
+ groups_settings_power_on_behavior_secondbox_topic: string;
1273
+ light_settings_default_secondtopic: string;
1274
+ light_settings_default_secondbox_text: string;
1275
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
1276
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
1277
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
1278
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
1279
+ groups_settings_power_on_behavior_disturbbox_note: string;
1280
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
1281
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
1252
1282
  };
1253
1283
  bg: {
1254
1284
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -1666,6 +1696,16 @@ declare const _default: {
1666
1696
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
1667
1697
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
1668
1698
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
1699
+ groups_settings_power_on_behavior_secondbox_topic: string;
1700
+ light_settings_default_secondtopic: string;
1701
+ light_settings_default_secondbox_text: string;
1702
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
1703
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
1704
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
1705
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
1706
+ groups_settings_power_on_behavior_disturbbox_note: string;
1707
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
1708
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
1669
1709
  };
1670
1710
  da: {
1671
1711
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -2083,6 +2123,16 @@ declare const _default: {
2083
2123
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
2084
2124
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
2085
2125
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
2126
+ groups_settings_power_on_behavior_secondbox_topic: string;
2127
+ light_settings_default_secondtopic: string;
2128
+ light_settings_default_secondbox_text: string;
2129
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
2130
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
2131
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
2132
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
2133
+ groups_settings_power_on_behavior_disturbbox_note: string;
2134
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
2135
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
2086
2136
  };
2087
2137
  de: {
2088
2138
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -2500,6 +2550,16 @@ declare const _default: {
2500
2550
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
2501
2551
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
2502
2552
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
2553
+ groups_settings_power_on_behavior_secondbox_topic: string;
2554
+ light_settings_default_secondtopic: string;
2555
+ light_settings_default_secondbox_text: string;
2556
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
2557
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
2558
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
2559
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
2560
+ groups_settings_power_on_behavior_disturbbox_note: string;
2561
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
2562
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
2503
2563
  };
2504
2564
  el: {
2505
2565
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -2917,6 +2977,16 @@ declare const _default: {
2917
2977
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
2918
2978
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
2919
2979
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
2980
+ groups_settings_power_on_behavior_secondbox_topic: string;
2981
+ light_settings_default_secondtopic: string;
2982
+ light_settings_default_secondbox_text: string;
2983
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
2984
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
2985
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
2986
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
2987
+ groups_settings_power_on_behavior_disturbbox_note: string;
2988
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
2989
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
2920
2990
  };
2921
2991
  es: {
2922
2992
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -3334,6 +3404,16 @@ declare const _default: {
3334
3404
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
3335
3405
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
3336
3406
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
3407
+ groups_settings_power_on_behavior_secondbox_topic: string;
3408
+ light_settings_default_secondtopic: string;
3409
+ light_settings_default_secondbox_text: string;
3410
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
3411
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
3412
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
3413
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
3414
+ groups_settings_power_on_behavior_disturbbox_note: string;
3415
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
3416
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
3337
3417
  };
3338
3418
  et: {
3339
3419
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -3751,6 +3831,16 @@ declare const _default: {
3751
3831
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
3752
3832
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
3753
3833
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
3834
+ groups_settings_power_on_behavior_secondbox_topic: string;
3835
+ light_settings_default_secondtopic: string;
3836
+ light_settings_default_secondbox_text: string;
3837
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
3838
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
3839
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
3840
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
3841
+ groups_settings_power_on_behavior_disturbbox_note: string;
3842
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
3843
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
3754
3844
  };
3755
3845
  fi: {
3756
3846
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -4168,6 +4258,16 @@ declare const _default: {
4168
4258
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
4169
4259
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
4170
4260
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
4261
+ groups_settings_power_on_behavior_secondbox_topic: string;
4262
+ light_settings_default_secondtopic: string;
4263
+ light_settings_default_secondbox_text: string;
4264
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
4265
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
4266
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
4267
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
4268
+ groups_settings_power_on_behavior_disturbbox_note: string;
4269
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
4270
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
4171
4271
  };
4172
4272
  fr: {
4173
4273
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -4585,6 +4685,16 @@ declare const _default: {
4585
4685
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
4586
4686
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
4587
4687
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
4688
+ groups_settings_power_on_behavior_secondbox_topic: string;
4689
+ light_settings_default_secondtopic: string;
4690
+ light_settings_default_secondbox_text: string;
4691
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
4692
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
4693
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
4694
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
4695
+ groups_settings_power_on_behavior_disturbbox_note: string;
4696
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
4697
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
4588
4698
  };
4589
4699
  hr: {
4590
4700
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -5002,6 +5112,16 @@ declare const _default: {
5002
5112
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
5003
5113
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
5004
5114
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
5115
+ groups_settings_power_on_behavior_secondbox_topic: string;
5116
+ light_settings_default_secondtopic: string;
5117
+ light_settings_default_secondbox_text: string;
5118
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
5119
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
5120
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
5121
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
5122
+ groups_settings_power_on_behavior_disturbbox_note: string;
5123
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
5124
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
5005
5125
  };
5006
5126
  hu: {
5007
5127
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -5419,6 +5539,16 @@ declare const _default: {
5419
5539
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
5420
5540
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
5421
5541
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
5542
+ groups_settings_power_on_behavior_secondbox_topic: string;
5543
+ light_settings_default_secondtopic: string;
5544
+ light_settings_default_secondbox_text: string;
5545
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
5546
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
5547
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
5548
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
5549
+ groups_settings_power_on_behavior_disturbbox_note: string;
5550
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
5551
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
5422
5552
  };
5423
5553
  it: {
5424
5554
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -5836,6 +5966,16 @@ declare const _default: {
5836
5966
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
5837
5967
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
5838
5968
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
5969
+ groups_settings_power_on_behavior_secondbox_topic: string;
5970
+ light_settings_default_secondtopic: string;
5971
+ light_settings_default_secondbox_text: string;
5972
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
5973
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
5974
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
5975
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
5976
+ groups_settings_power_on_behavior_disturbbox_note: string;
5977
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
5978
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
5839
5979
  };
5840
5980
  ko: {
5841
5981
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -6253,6 +6393,16 @@ declare const _default: {
6253
6393
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
6254
6394
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
6255
6395
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
6396
+ groups_settings_power_on_behavior_secondbox_topic: string;
6397
+ light_settings_default_secondtopic: string;
6398
+ light_settings_default_secondbox_text: string;
6399
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
6400
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
6401
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
6402
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
6403
+ groups_settings_power_on_behavior_disturbbox_note: string;
6404
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
6405
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
6256
6406
  };
6257
6407
  lt: {
6258
6408
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -6670,6 +6820,16 @@ declare const _default: {
6670
6820
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
6671
6821
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
6672
6822
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
6823
+ groups_settings_power_on_behavior_secondbox_topic: string;
6824
+ light_settings_default_secondtopic: string;
6825
+ light_settings_default_secondbox_text: string;
6826
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
6827
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
6828
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
6829
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
6830
+ groups_settings_power_on_behavior_disturbbox_note: string;
6831
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
6832
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
6673
6833
  };
6674
6834
  lv: {
6675
6835
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -7087,6 +7247,16 @@ declare const _default: {
7087
7247
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
7088
7248
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
7089
7249
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
7250
+ groups_settings_power_on_behavior_secondbox_topic: string;
7251
+ light_settings_default_secondtopic: string;
7252
+ light_settings_default_secondbox_text: string;
7253
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
7254
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
7255
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
7256
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
7257
+ groups_settings_power_on_behavior_disturbbox_note: string;
7258
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
7259
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
7090
7260
  };
7091
7261
  nb: {
7092
7262
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -7504,6 +7674,16 @@ declare const _default: {
7504
7674
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
7505
7675
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
7506
7676
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
7677
+ groups_settings_power_on_behavior_secondbox_topic: string;
7678
+ light_settings_default_secondtopic: string;
7679
+ light_settings_default_secondbox_text: string;
7680
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
7681
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
7682
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
7683
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
7684
+ groups_settings_power_on_behavior_disturbbox_note: string;
7685
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
7686
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
7507
7687
  };
7508
7688
  nl: {
7509
7689
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -7921,6 +8101,16 @@ declare const _default: {
7921
8101
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
7922
8102
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
7923
8103
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
8104
+ groups_settings_power_on_behavior_secondbox_topic: string;
8105
+ light_settings_default_secondtopic: string;
8106
+ light_settings_default_secondbox_text: string;
8107
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
8108
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
8109
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
8110
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
8111
+ groups_settings_power_on_behavior_disturbbox_note: string;
8112
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
8113
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
7924
8114
  };
7925
8115
  pl: {
7926
8116
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -8338,6 +8528,16 @@ declare const _default: {
8338
8528
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
8339
8529
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
8340
8530
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
8531
+ groups_settings_power_on_behavior_secondbox_topic: string;
8532
+ light_settings_default_secondtopic: string;
8533
+ light_settings_default_secondbox_text: string;
8534
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
8535
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
8536
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
8537
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
8538
+ groups_settings_power_on_behavior_disturbbox_note: string;
8539
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
8540
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
8341
8541
  };
8342
8542
  'pt-BR': {
8343
8543
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -8755,6 +8955,16 @@ declare const _default: {
8755
8955
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
8756
8956
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
8757
8957
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
8958
+ groups_settings_power_on_behavior_secondbox_topic: string;
8959
+ light_settings_default_secondtopic: string;
8960
+ light_settings_default_secondbox_text: string;
8961
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
8962
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
8963
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
8964
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
8965
+ groups_settings_power_on_behavior_disturbbox_note: string;
8966
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
8967
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
8758
8968
  };
8759
8969
  pt_BR: {
8760
8970
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -9172,6 +9382,16 @@ declare const _default: {
9172
9382
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
9173
9383
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
9174
9384
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
9385
+ groups_settings_power_on_behavior_secondbox_topic: string;
9386
+ light_settings_default_secondtopic: string;
9387
+ light_settings_default_secondbox_text: string;
9388
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
9389
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
9390
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
9391
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
9392
+ groups_settings_power_on_behavior_disturbbox_note: string;
9393
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
9394
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
9175
9395
  };
9176
9396
  ro: {
9177
9397
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -9589,6 +9809,16 @@ declare const _default: {
9589
9809
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
9590
9810
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
9591
9811
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
9812
+ groups_settings_power_on_behavior_secondbox_topic: string;
9813
+ light_settings_default_secondtopic: string;
9814
+ light_settings_default_secondbox_text: string;
9815
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
9816
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
9817
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
9818
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
9819
+ groups_settings_power_on_behavior_disturbbox_note: string;
9820
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
9821
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
9592
9822
  };
9593
9823
  ru: {
9594
9824
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -10006,6 +10236,16 @@ declare const _default: {
10006
10236
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
10007
10237
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
10008
10238
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
10239
+ groups_settings_power_on_behavior_secondbox_topic: string;
10240
+ light_settings_default_secondtopic: string;
10241
+ light_settings_default_secondbox_text: string;
10242
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
10243
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
10244
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
10245
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
10246
+ groups_settings_power_on_behavior_disturbbox_note: string;
10247
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
10248
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
10009
10249
  };
10010
10250
  sk: {
10011
10251
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -10423,6 +10663,16 @@ declare const _default: {
10423
10663
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
10424
10664
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
10425
10665
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
10666
+ groups_settings_power_on_behavior_secondbox_topic: string;
10667
+ light_settings_default_secondtopic: string;
10668
+ light_settings_default_secondbox_text: string;
10669
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
10670
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
10671
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
10672
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
10673
+ groups_settings_power_on_behavior_disturbbox_note: string;
10674
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
10675
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
10426
10676
  };
10427
10677
  sv: {
10428
10678
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -10840,6 +11090,16 @@ declare const _default: {
10840
11090
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
10841
11091
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
10842
11092
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
11093
+ groups_settings_power_on_behavior_secondbox_topic: string;
11094
+ light_settings_default_secondtopic: string;
11095
+ light_settings_default_secondbox_text: string;
11096
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
11097
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
11098
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
11099
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
11100
+ groups_settings_power_on_behavior_disturbbox_note: string;
11101
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
11102
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
10843
11103
  };
10844
11104
  tr: {
10845
11105
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -11257,6 +11517,16 @@ declare const _default: {
11257
11517
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
11258
11518
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
11259
11519
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
11520
+ groups_settings_power_on_behavior_secondbox_topic: string;
11521
+ light_settings_default_secondtopic: string;
11522
+ light_settings_default_secondbox_text: string;
11523
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
11524
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
11525
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
11526
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
11527
+ groups_settings_power_on_behavior_disturbbox_note: string;
11528
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
11529
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
11260
11530
  };
11261
11531
  uk: {
11262
11532
  add_new_dynamic_mood_color_changing_mode_value: string;
@@ -11674,6 +11944,16 @@ declare const _default: {
11674
11944
  ceiling_fan_tile_uvc_fan_direction_opt_2: string;
11675
11945
  ceiling_fan_tile_uvc_fan_mode_opt_1: string;
11676
11946
  ceiling_fan_tile_uvc_fan_mode_opt_2: string;
11947
+ groups_settings_power_on_behavior_secondbox_topic: string;
11948
+ light_settings_default_secondtopic: string;
11949
+ light_settings_default_secondbox_text: string;
11950
+ groups_settings_power_on_behavior_secondbox_status_value1_topic: string;
11951
+ groups_settings_power_on_behavior_secondbox_status_value1_description: string;
11952
+ groups_settings_power_on_behavior_secondbox_status_value3_description: string;
11953
+ groups_settings_power_on_behavior_secondbox_status_value3_topic: string;
11954
+ groups_settings_power_on_behavior_disturbbox_note: string;
11955
+ groups_settings_power_on_behavior_secondbox_status_value2_topic: string;
11956
+ groups_settings_power_on_behavior_secondbox_status_value2_description: string;
11677
11957
  };
11678
11958
  };
11679
11959
  export default _default;
@@ -1,13 +1,26 @@
1
1
  export declare const reducers: {
2
- dpState: any;
3
- devInfo: any;
4
- logs: any;
5
- ldvModules: any;
2
+ dpState: import("redux-actions").ReduxCompatibleReducer<import("./modules/common").DpState, import("tuya-panel-kit").DevInfo<Record<string, import("tuya-panel-kit").DpType>> | (Partial<import("./modules/common").DpState> & {
3
+ [key: string]: string | number | boolean;
4
+ })>;
5
+ devInfo: import("redux-actions").ReduxCompatibleReducer<import("tuya-panel-kit").DevInfo<import("./modules/common").DpState>, import("tuya-panel-kit").DevInfo<import("./modules/common").DpState>>;
6
+ logs: import("redux-actions").ReduxCompatibleReducer<import("./modules/common").Log[], import("tuya-panel-kit").DevInfo<Record<string, import("tuya-panel-kit").DpType>> | (Partial<import("./modules/common").DpState> & {
7
+ [key: string]: string | number | boolean;
8
+ }) | undefined>;
9
+ ldvModules: import("@reduxjs/toolkit").Reducer<import("./modules/NativePropsSlice").NativeProps, import("@reduxjs/toolkit").AnyAction>;
6
10
  };
7
- type Reducers = typeof reducers;
8
- export type ReduxState = {
11
+ declare type Reducers = typeof reducers;
12
+ export declare type ReduxState = {
9
13
  [K in keyof Reducers]: ReturnType<Reducers[K]>;
10
14
  };
11
- export declare const rootReducers: any;
12
- export declare const rootEpics: any;
15
+ export declare const rootReducers: import("redux").Reducer<import("redux").CombinedState<{
16
+ dpState: import("./modules/common").DpState;
17
+ devInfo: import("tuya-panel-kit").DevInfo<import("./modules/common").DpState>;
18
+ logs: import("./modules/common").Log[];
19
+ ldvModules: import("./modules/NativePropsSlice").NativeProps;
20
+ }>, import("redux").AnyAction>;
21
+ export declare const rootEpics: import("redux-observable").Epic<import("redux-actions").Action<Partial<import("./modules/common").DpState> & {
22
+ [key: string]: string | number | boolean;
23
+ }>, import("redux-actions").Action<Partial<import("./modules/common").DpState> & {
24
+ [key: string]: string | number | boolean;
25
+ }>, void, any>;
13
26
  export {};
@@ -1,2 +1,9 @@
1
1
  import { ReduxState } from './combine';
2
- export default function configureStore(initialState?: Partial<ReduxState>): any;
2
+ export default function configureStore(initialState?: Partial<ReduxState>): import("redux").Store<import("redux").CombinedState<{
3
+ dpState: import("./modules/common").DpState;
4
+ devInfo: import("tuya-panel-kit").DevInfo<import("./modules/common").DpState>;
5
+ logs: import("./modules/common").Log[];
6
+ ldvModules: import("./modules/NativePropsSlice").NativeProps;
7
+ }>, import("redux").AnyAction> & {
8
+ dispatch: unknown;
9
+ };
@@ -3,14 +3,29 @@ export * from './combine';
3
3
  export * from './configureStore';
4
4
  declare const actions: {
5
5
  common: {
6
- devInfoChange: any;
7
- deviceChange: any;
8
- responseUpdateDp: any;
9
- updateDp: any;
10
- consoleChange: any;
11
- clearConsole: any;
6
+ devInfoChange: import("redux-actions").ActionFunction1<import("tuya-panel-kit").DevInfo<Record<string, import("tuya-panel-kit").DpType>>, import("redux-actions").Action<import("tuya-panel-kit").DevInfo<Record<string, import("tuya-panel-kit").DpType>>>>;
7
+ deviceChange: import("redux-actions").ActionFunction1<import("tuya-panel-kit").DevInfo<Record<string, import("tuya-panel-kit").DpType>>, import("redux-actions").Action<import("tuya-panel-kit").DevInfo<Record<string, import("tuya-panel-kit").DpType>>>>;
8
+ responseUpdateDp: import("redux-actions").ActionFunction1<Partial<import("./modules/common").DpState> & {
9
+ [key: string]: string | number | boolean;
10
+ }, import("redux-actions").Action<Partial<import("./modules/common").DpState> & {
11
+ [key: string]: string | number | boolean;
12
+ }>>;
13
+ updateDp: import("redux-actions").ActionFunction1<Partial<import("./modules/common").DpState> & {
14
+ [key: string]: string | number | boolean;
15
+ }, import("redux-actions").Action<Partial<import("./modules/common").DpState> & {
16
+ [key: string]: string | number | boolean;
17
+ }>>;
18
+ consoleChange: import("redux-actions").ActionFunctionAny<import("redux-actions").Action<any>>;
19
+ clearConsole: import("redux-actions").ActionFunctionAny<import("redux-actions").Action<any>>;
12
20
  };
13
21
  };
14
22
  export { actions };
15
- export declare const store: any;
16
- export declare function useSelector<TSelected>(selector: (state: ReduxState) => TSelected, equalityFn?: (left: TSelected, right: TSelected) => boolean): any;
23
+ export declare const store: import("redux").Store<import("redux").CombinedState<{
24
+ dpState: import("./modules/common").DpState;
25
+ devInfo: import("tuya-panel-kit").DevInfo<import("./modules/common").DpState>;
26
+ logs: import("./modules/common").Log[];
27
+ ldvModules: import("./modules/NativePropsSlice").NativeProps;
28
+ }>, import("redux").AnyAction> & {
29
+ dispatch: unknown;
30
+ };
31
+ export declare function useSelector<TSelected>(selector: (state: ReduxState) => TSelected, equalityFn?: (left: TSelected, right: TSelected) => boolean): TSelected;
@@ -19,12 +19,12 @@ export interface UAGroupInfo {
19
19
  dps: any;
20
20
  config: any;
21
21
  }
22
- type AsyncBlockType<T> = () => Promise<DpsResult<T>>;
23
- type SyncBlockType<T> = () => DpsResult<T>;
22
+ declare type AsyncBlockType<T> = () => Promise<DpsResult<T>>;
23
+ declare type SyncBlockType<T> = () => DpsResult<T>;
24
24
  declare function asyncSetDps<T>(dispatch: Dispatch<any>, block: AsyncBlockType<T> | SyncBlockType<T>): Promise<Result<T>>;
25
25
  declare function simpleSetDps<T>(dispatch: Dispatch<any>): (deviceId: string, dps: any) => Promise<Result<T>>;
26
26
  declare function simpleSetDp<T>(dispatch: Dispatch<any>): (deviceId: string, dp: string, value: any) => Promise<Result<T>>;
27
- declare const useDeviceId: () => any;
27
+ declare const useDeviceId: () => string;
28
28
  declare const useFamilyName: () => string;
29
29
  declare function useDp<T, R extends any>(dp: string): [T, (value: T) => Promise<Result<R>>];
30
30
  declare function useScaledDp<R extends any>(dp: string, scaled?: number): [number, (value: number) => Promise<Result<R>>];
@@ -35,7 +35,7 @@ interface DpState {
35
35
  }
36
36
  declare const useDeviceInfo: () => DevInfo<DpState>;
37
37
  declare const useTimeSchedule: () => [v: boolean | undefined, f: any];
38
- declare const useEnergieverbrauch: () => any[];
38
+ declare const useEnergieverbrauch: () => (object | undefined)[];
39
39
  export declare const useEngergyGeneration: () => boolean;
40
40
  export declare function useUAGroupInfo(): UAGroupInfo;
41
41
  export declare function useGroupConfig<T>(): [T, (dps: any, newConfig: T) => Promise<Result<any>>];
@@ -43,12 +43,13 @@ export declare function useGroupConfig<T>(): [T, (dps: any, newConfig: T) => Pro
43
43
  * @template GC GroupConfig
44
44
  * @template GCPT GroupConfigPropertyType
45
45
  * @param key
46
+ * @param dpKey
46
47
  * @param extraDps
47
48
  */
48
49
  export declare function useGroupConfigFeature<GC, GCPT extends {
49
50
  [K in keyof GC]: GC[K];
50
- }[keyof GC]>(key: keyof GC, extraDps?: any): [GCPT, (value: GCPT, dpValue: any) => Promise<Result<any>>];
51
+ }[keyof GC]>(key: keyof GC, dpKey?: string, extraDps?: any): [GCPT, (value: GCPT, dpValue: any) => Promise<Result<any>>];
51
52
  export declare const useFanMaxSpeed: () => 3 | 20;
52
- export declare const ldvModules: any;
53
- export declare const setNativeProps: any, setGroupNativeProps: any, setDps: any, setTimeSchedule: any, setEnergieverbrauch: any;
53
+ export declare const ldvModules: import("@reduxjs/toolkit").Reducer<NativeProps, import("@reduxjs/toolkit").AnyAction>;
54
+ export declare const setNativeProps: import("@reduxjs/toolkit").ActionCreatorWithPayload<NativeProps, string>, setGroupNativeProps: import("@reduxjs/toolkit").ActionCreatorWithPayload<NativeProps, string>, setDps: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setTimeSchedule: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>, setEnergieverbrauch: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, string>;
54
55
  export { asyncSetDps, simpleSetDps, simpleSetDp, useDeviceId, useDeviceInfo, useDp, useScaledDp, useDps, useFamilyName, useTimeSchedule, useEnergieverbrauch, };
@@ -52,7 +52,7 @@ const productList = [
52
52
  ]
53
53
 
54
54
  const fanProductList = [
55
- "urcqn70htlshvigb"
55
+ 'urcqn70htlshvigb',
56
56
  ]
57
57
 
58
58
  const nativePropsSlice = createSlice({
@@ -231,15 +231,16 @@ export function useGroupConfig<T>(): [T, (dps: any, newConfig: T) => Promise<Res
231
231
  * @template GC GroupConfig
232
232
  * @template GCPT GroupConfigPropertyType
233
233
  * @param key
234
+ * @param dpKey
234
235
  * @param extraDps
235
236
  */
236
237
  export function useGroupConfigFeature<GC, GCPT extends { [K in keyof GC]: GC[K] }[keyof GC]>
237
- (key: keyof GC, extraDps: any = {}): [GCPT, (value: GCPT, dpValue: any) => Promise<Result<any>>] {
238
+ (key: keyof GC, dpKey?: string, extraDps: any = {}): [GCPT, (value: GCPT, dpValue: any) => Promise<Result<any>>] {
238
239
  const [groupConfig, setGroupConfig] = useGroupConfig<GC>()
239
240
  const setGroupConfigFeature = async (value: GCPT, dpValue: any) => {
240
241
  return await setGroupConfig(
241
242
  {
242
- [GlobalParams.dpSchemaMap[snakeCase(key as string)].dp]: dpValue,
243
+ [!!dpKey ? dpKey : GlobalParams.dpSchemaMap[snakeCase(key as string)].dp]: dpValue,
243
244
  ...extraDps,
244
245
  },
245
246
  {
@@ -251,10 +252,9 @@ export function useGroupConfigFeature<GC, GCPT extends { [K in keyof GC]: GC[K]
251
252
  return [groupConfig[key] as GCPT, setGroupConfigFeature]
252
253
  }
253
254
 
254
- export const useFanMaxSpeed = () =>{
255
+ export const useFanMaxSpeed = () => {
255
256
  const {productId} = useDeviceInfo()
256
- const maxSpeed = fanProductList.includes(productId) ? 20 : 3
257
- return maxSpeed
257
+ return fanProductList.includes(productId) ? 20 : 3
258
258
  }
259
259
 
260
260
  export const ldvModules = nativePropsSlice.reducer
@@ -1,4 +1,6 @@
1
- import { DpValue } from 'tuya-panel-kit';
1
+ import { DevInfo, DpValue } from 'tuya-panel-kit';
2
+ import { Observable } from 'rxjs/Observable';
3
+ import { ActionsObservable } from 'redux-observable';
2
4
  import 'rxjs/add/observable/fromPromise';
3
5
  import 'rxjs/add/observable/of';
4
6
  import 'rxjs/add/observable/merge';
@@ -16,21 +18,27 @@ export interface Log {
16
18
  time: string;
17
19
  isSend: boolean;
18
20
  }
21
+ declare type Logs = Array<Log>;
22
+ declare type UpdateDevInfoPayload = DevInfo;
23
+ declare type UpdateDpStatePayload = Partial<DpState> & {
24
+ [key: string]: DpValue;
25
+ };
19
26
  export declare const actions: {
20
- devInfoChange: any;
21
- deviceChange: any;
22
- responseUpdateDp: any;
23
- updateDp: any;
24
- consoleChange: any;
25
- clearConsole: any;
27
+ devInfoChange: import("redux-actions").ActionFunction1<UpdateDevInfoPayload, import("redux-actions").Action<UpdateDevInfoPayload>>;
28
+ deviceChange: import("redux-actions").ActionFunction1<UpdateDevInfoPayload, import("redux-actions").Action<UpdateDevInfoPayload>>;
29
+ responseUpdateDp: import("redux-actions").ActionFunction1<UpdateDpStatePayload, import("redux-actions").Action<UpdateDpStatePayload>>;
30
+ updateDp: import("redux-actions").ActionFunction1<UpdateDpStatePayload, import("redux-actions").Action<UpdateDpStatePayload>>;
31
+ consoleChange: import("redux-actions").ActionFunctionAny<import("redux-actions").Action<any>>;
32
+ clearConsole: import("redux-actions").ActionFunctionAny<import("redux-actions").Action<any>>;
26
33
  };
27
- export type Actions = {
34
+ export declare type Actions = {
28
35
  [K in keyof typeof actions]: ReturnType<typeof actions[K]>;
29
36
  };
30
37
  export declare const reducers: {
31
- dpState: any;
32
- devInfo: any;
33
- logs: any;
34
- ldvModules: any;
38
+ dpState: import("redux-actions").ReduxCompatibleReducer<DpState, UpdateDevInfoPayload | UpdateDpStatePayload>;
39
+ devInfo: import("redux-actions").ReduxCompatibleReducer<DevInfo<DpState>, DevInfo<DpState>>;
40
+ logs: import("redux-actions").ReduxCompatibleReducer<Logs, DevInfo<Record<string, import("tuya-panel-kit").DpType>> | UpdateDpStatePayload | undefined>;
41
+ ldvModules: import("@reduxjs/toolkit").Reducer<import("./NativePropsSlice").NativeProps, import("@reduxjs/toolkit").AnyAction>;
35
42
  };
36
- export declare const epics: ((action$: ActionsObservable<any>) => any)[];
43
+ export declare const epics: ((action$: ActionsObservable<Actions['updateDp']>) => Observable<import("redux-actions").Action<UpdateDpStatePayload>>)[];
44
+ export {};
@@ -32,7 +32,7 @@ declare class Parser {
32
32
  * @return {Array} [h, s, v]
33
33
  *
34
34
  */
35
- decodeColorData(byte: string): string | number[];
35
+ decodeColorData(byte: string): number[];
36
36
  decodeSceneData(byte: string): {
37
37
  sceneNum: number;
38
38
  scenes: {
@@ -54,8 +54,8 @@ declare class Parser {
54
54
  * 格式化hsv
55
55
  * 亮度将转化为透明度变化
56
56
  */
57
- hsv2rgba(hue: number, saturation: number, bright: number): any;
58
- brightKelvin2rgba(bright: number, kelvin: number): any;
57
+ hsv2rgba(hue: number, saturation: number, bright: number): string;
58
+ brightKelvin2rgba(bright: number, kelvin: number): string;
59
59
  }
60
60
  export declare const ColorParser: Parser;
61
61
  export declare const calcPercent: (start: number, end: number, pos: number, min?: number) => number;
@@ -64,7 +64,7 @@ export default class ColorUtils {
64
64
  static decimal2Hex: (decimalColor: any) => string;
65
65
  static random: () => string;
66
66
  static rotateHue: (hue: any, amount: any) => any;
67
- static getColorEncoding: (color: any) => "rgb" | "unknown" | "hex" | "hsv" | "hsl" | "cmyk";
67
+ static getColorEncoding: (color: any) => "unknown" | "hex" | "rgb" | "hsv" | "hsl" | "cmyk";
68
68
  static any2Hsl: (color: any) => any;
69
69
  static getTransformEncodingFunction: (color: any, desiredEncoding: any) => any;
70
70
  static darken: (color: any, percentage: any) => any;
@@ -1 +1 @@
1
- export declare const cctToColor: (key: string | number, brightness?: string | number) => any;
1
+ export declare const cctToColor: (key: string | number, brightness?: string | number | undefined) => any;
@@ -11,7 +11,7 @@ export declare function getWeek(weekString: any): number[];
11
11
  */
12
12
  export declare function spliceByStep(str: string, step: number): string[];
13
13
  export declare function hex2Int(hex: string): number;
14
- export declare const localeNumber: (v: number | string, fixed?: number) => string | number;
14
+ export declare const localeNumber: (v: number | string, fixed?: number | undefined) => string | number;
15
15
  export declare const exportFile: (list: any) => void;
16
16
  export declare const exportHistoryFile: (list: any) => void;
17
17
  export declare const monthFormat: (v: number | string) => string;
@@ -30,5 +30,5 @@ interface DialogProps {
30
30
  close: () => void;
31
31
  }) => void;
32
32
  }
33
- export declare function showDialog(props: DialogProps): any;
33
+ export declare function showDialog(props: DialogProps): void;
34
34
  export {};