import type { DeleteWorkAreaCounts, DeviceBrandItem, DeviceItem, DeviceKind, DeviceModelItem, DeviceRow, DeviceTypeItem, I18nText } from './types'; export declare const DEVICE_ICON_COLOR: Record; export declare const CONNECTION_TYPE_OPTIONS: { label: string; value: string; }[]; export declare const BRAND_OPTION_SEPARATOR = "__"; /** 把品牌 id 和 code 编码成 Select value,避免 code 中特殊字符与 id 冲突。 */ export declare const getBrandOptionValue: (brand: DeviceBrandItem) => string; /** 从品牌 Select value 中还原 brand_code。 */ export declare const getBrandCodeFromOptionValue: (value?: string) => string | undefined; /** 读取型号支持的连接方式,用于外设型号筛选和连接配置展示。 */ export declare const getModelConnectionTypes: (model: DeviceModelItem) => string[]; /** 把连接方式 code 转成 UI 展示文案。 */ export declare const getConnectionTypeLabel: (value?: string) => string; /** 判断当前型号是否必须选择 profile。 */ export declare const isProfileRequired: (model?: DeviceModelItem) => boolean; /** 判断多语言表单值是否至少有一个非空语言值。 */ export declare const hasI18nValue: (value?: Record) => boolean; /** 将后端按类型返回的 active_models 展平成去重后的型号列表。 */ export declare const flattenDeviceModels: (types: DeviceTypeItem[]) => DeviceModelItem[]; /** 把后端设备实体转换成列表和详情抽屉共用的展示模型。 */ export declare const createDeviceRow: (item: DeviceItem, translation: (val?: I18nText) => string, profileNameMap?: Map) => DeviceRow; /** 兼容工作区详情接口可能返回 data 数组或单对象的两种结构。 */ export declare const resolveWorkAreaDetail: (response: unknown) => any; /** 从工作区详情响应中提取三类设备数量,用于删除前阻断判断。 */ export declare const getDeleteWorkAreaCounts: (response: unknown) => DeleteWorkAreaCounts;