import type { ExecutionFailureCode, ExecutionLifecycleEvent } from "../../core/execution/events"; import type { Graph, NodeStatus } from "../../core/graph/types"; import type { EditorDiagnosticCode } from "../../core/observability/editorEvents"; export type EditorExecutionStatus = "idle" | "running" | "success" | "error" | "cancelled"; export interface EditorNodeExecutionState { nodeId: string; nodeType: string; label: string; status: NodeStatus; attempt?: number; maxAttempts?: number; durationMs?: number; errorCode?: ExecutionFailureCode; } export interface EditorExecutionState { status: EditorExecutionStatus; attempt: number; nodes: EditorNodeExecutionState[]; durationMs?: number; errorCode?: EditorDiagnosticCode; errorMessage?: string; } export declare function createEditorExecutionState(graph: Graph, attempt?: number): EditorExecutionState; export declare function reduceEditorExecutionState(state: EditorExecutionState, event: ExecutionLifecycleEvent): EditorExecutionState; //# sourceMappingURL=executionState.d.ts.map