/** * Node Status Utility Functions * Provides utilities for managing and displaying node execution status */ import type { NodeExecutionStatus, NodeExecutionInfo } from '../types/index.js'; /** * Get the display color for a node execution status */ export declare function getStatusColor(status: NodeExecutionStatus): string; /** * Get the display icon for a node execution status */ export declare function getStatusIcon(status: NodeExecutionStatus): string; /** * Get the display label for a node execution status */ export declare function getStatusLabel(status: NodeExecutionStatus): string; /** * Get the background color for a node execution status overlay */ export declare function getStatusBackgroundColor(status: NodeExecutionStatus): string; /** * Get the text color for a node execution status overlay */ export declare function getStatusTextColor(status: NodeExecutionStatus): string; /** * Create a default NodeExecutionInfo object */ export declare function createDefaultExecutionInfo(): NodeExecutionInfo; /** * Update node execution info when execution starts */ export declare function updateExecutionStart(executionInfo: NodeExecutionInfo): NodeExecutionInfo; /** * Update node execution info when execution completes successfully */ export declare function updateExecutionComplete(executionInfo: NodeExecutionInfo, duration: number): NodeExecutionInfo; /** * Update node execution info when execution fails */ export declare function updateExecutionFailed(executionInfo: NodeExecutionInfo, error: string, duration: number): NodeExecutionInfo; /** * Reset node execution info */ export declare function resetExecutionInfo(executionInfo: NodeExecutionInfo): NodeExecutionInfo; /** * Format execution duration for display */ export declare function formatExecutionDuration(duration?: number): string; /** * Format last executed timestamp for display */ export declare function formatLastExecuted(timestamp?: string): string;