import type { DeleteWorkAreaCounts, DeviceItem, DeviceModelItem, DeviceRow, DeviceTypeItem, I18nText } from './types'; /** 将后端按类型返回的 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;