@ledvance/base 1.1.41 → 1.1.43

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/i18n/strings.ts +330 -50
  42. package/src/models/combine.d.ts +21 -8
  43. package/src/models/configureStore.d.ts +8 -1
  44. package/src/models/index.d.ts +23 -8
  45. package/src/models/modules/NativePropsSlice.d.ts +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.41",
7
+ "version": "1.1.43",
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;