import { type VNode } from 'vue'; /** 归一后的执行状态 */ export type ConvergedState = 'failed' | 'pending' | 'running' | 'skipped' | 'success' | 'suspended'; /** 单个归一状态的完整定义 */ interface FlowStateDef { /** 状态主题色,供统计标签文字与图标语义复用 */ color: string; /** 节点状态点的边框色,缺省回退到 color(仅 pending 与主题色不同) */ dotColor?: string; /** 状态图标(VNode);running 走 Loading 动画,故为 null */ icon: null | VNode; /** 归一状态标识 */ key: ConvergedState; /** 国际化标签 */ label: string; /** 归一到该状态的后端原始状态枚举 */ rawStates: string[]; } /** * 执行状态唯一配置源(Single Source of Truth)。 * 新增 / 调整状态只需维护此处:归一映射、统计标签、颜色、图标均由它派生, * 避免状态逻辑散落在组件与 SCSS 多处。 * 数组顺序即统计概览(visibleStats)的展示顺序。 */ export declare const STATE_DEFS: FlowStateDef[]; /** 后端原始状态归一;未知状态回退 running(保持原有行为) */ export declare const getConvergedState: (rawState: string) => ConvergedState; /** 状态主题色(用于统计标签文字) */ export declare const getStateColor: (state: ConvergedState) => string; /** 节点状态点边框色 */ export declare const getStateDotColor: (state: ConvergedState) => string; /** 取状态图标,返回克隆的 VNode 以支持多处复用;running 无图标返回 null */ export declare const getStateIcon: (state: ConvergedState) => null | VNode; export {};