import { IotAlarm, IotAlarmLevel, IotChartSeries, IotDevice, IotDeviceStatus, IotDeviceType, IotDeviceTypePreset, IotMetric, IotTopologyEdge, IotTopologyNode } from './types'; /** 设备类型预设表 */ export declare const DEVICE_TYPE_PRESETS: IotDeviceTypePreset[]; /** 设备状态颜色映射 */ export declare const IOT_STATUS_COLORS: Record; /** 设备状态标签映射 */ export declare const STATUS_LABELS: Record; /** 告警级别颜色映射 */ export declare const ALARM_LEVEL_COLORS: Record; /** 告警级别标签映射 */ export declare const ALARM_LEVEL_LABELS: Record; /** 按类型查找预设 */ export declare const findDevicePreset: (type: IotDeviceType) => IotDeviceTypePreset | undefined; /** 创建指标 */ export declare const createMetric: (overrides?: Partial) => IotMetric; /** 创建设备 */ export declare const createDevice: (overrides?: Partial) => IotDevice; /** 创建告警 */ export declare const createAlarm: (overrides?: Partial) => IotAlarm; /** 拓扑节点尺寸 */ export declare const TOPOLOGY_NODE_WIDTH = 120; export declare const TOPOLOGY_NODE_HEIGHT = 56; /** 布局水平间距 */ export declare const LAYOUT_H_GAP = 40; /** 布局垂直间距 */ export declare const LAYOUT_V_GAP = 100; /** 布局左边距 */ export declare const LAYOUT_MARGIN_X = 80; /** 布局上边距 */ export declare const LAYOUT_MARGIN_Y = 60; /** * 自动布局拓扑:基于 parentId 构建树形分层布局 * - 同一深度水平排列 * - 父节点居中对齐到子节点区间 */ export declare const autoLayoutTopology: (devices: IotDevice[]) => IotTopologyNode[]; /** 根据设备列表构建拓扑连线 */ export declare const buildTopologyEdges: (devices: IotDevice[]) => IotTopologyEdge[]; /** 计算拓扑视图所需尺寸 */ export declare const computeTopologySize: (nodes: IotTopologyNode[]) => { width: number; height: number; }; /** 示例时序数据(温度/湿度/压力) */ export declare const SAMPLE_METRICS: IotChartSeries[]; /** 示例设备(1 网关 → 3 控制器 → 传感器/摄像头/执行器) */ export declare const SAMPLE_DEVICES: IotDevice[]; /** 示例告警 */ export declare const SAMPLE_ALARMS: IotAlarm[];