interface ThemeValue { rangeType: 'blank' | 'bool' | 'enum'; type: string; value: { initialize: string; }; } interface CloudConfig { /** * 跳转链接配置 */ jump_url?: { code: 'jump_url'; description: string; name: string; selected: boolean; }; /** * 云定时配置 */ timer?: { code: 'timer'; description: string; name: string; selected: boolean; }; } interface GlobalConfig { /** * 背景配置 */ background: string; /** * 字体颜色配置 */ fontColor: string; /** * 主题色配置 */ themeColor: string; } interface IoTPublicConfig { /** * 背景图片配置项 */ background?: ThemeValue; /** * @deprecated IoT 平台配置的云定时和跳转链接,请使用 bic 字段 */ cloud?: CloudConfig; /** * 和设备功能点相关的配置项 */ dps?: any; /** * 字体颜色配置项 */ fontColor?: ThemeValue; /** * 全局配置项 */ global: GlobalConfig; /** * 主题配置,暗色或亮色系 */ theme: 'default' | 'light'; /** * 主题色配置项 */ themeColor?: ThemeValue; /** * 主题图片配置项 */ themeImage?: ThemeValue; subUiId?: string; /** * 界面配置最近更新时间 */ timestamp?: number; other?: Record; } /** * 在此自定义你的当前项目云功能配置的 type */ interface FunConfig { raw: { /** * 功能配置最近更新时间 */ timestamp?: string; [key: string]: any; }; } interface Config { /** * 是否初始化完毕 */ initialized: boolean; /** * IoT 的界面配置能力 */ iot: IoTPublicConfig; /** * IoT 的功能配置能力 */ fun: FunConfig; /** * IoT 平台配置的云定时和跳转链接 */ bic: CloudConfig; } /** * 获取 UI 配置数据 * @returns Config */ export declare function usePanelConfig(): Config; export {};