// 设备状态类型
export interface DeviceStatus {
  key: string;
  label: string;
  value: string;
  /*   mode: string;
    program: string;
    tool: string;
    spindleSpeed: string;
    feedRate: string;
    spindleOverride: string;
    feedOverride: string;
    uptime: string; */
}

// 关节数据
export interface JointData {
  joint: string;
  position: string;
  load: string;
}

// 报警信息
export interface AlarmInfo {
  time: string;
  content: string;
  originalTime?: string;
}

// 图表数据
export interface ChartData {
  X: number[];
  Y: number[];
  Z: number[];
}

// 组件维护数据
export interface ComponentData {
  names: string[];
  planned: number[];
  used: number[];
  remaining: number[];
  usageRates: number[];
}

// 设备状态统计数据
export interface EquipmentStatusData {
  dates: string[];
  workHours: string[];
  alarmHours: string[];
  standbyHours: string[];
  shutdownHours: string[];
}

// MQTT 配置
export interface MqttConfig {
  host: string;
  port: number;
  endpoint: string;
  clean: boolean;
  connectTimeout: number;
  reconnectPeriod: number;
  clientId: string;
  keepalive: number;
  resubscribe: boolean;
}
// 在原有的类型定义基础上添加
export interface StatusItem {
  label: string;
}

export interface AxisButton {
  name: string;
  active: boolean;
}

export interface ToolData {
  toolNames: string[];
  planned: number[];
  actual: number[];
}

export interface ToolInfo {
  toolName: string;
  planned: number;
  actual: number;
  usageRate: number;
}

export interface ToolStatistics {
  totalTools: number;
  averageUsage: number;
  maxUsage: number;
  minUsage: number;
}
export interface HighFrequencyAlarm {
  content: string;
  frequency: number;
}
