import type { WorkflowSessionRunView } from "../client/view.js"; import type { WorkflowDefinitionSnapshot, WorkflowRunState, WorkflowUpdateRecord } from "../workflows/types.js"; /** Widget inputs rebuilt from the bounded session run view. */ export type WidgetRunInput = { state: WorkflowRunState; snapshot: WorkflowDefinitionSnapshot; updates: WorkflowUpdateRecord[]; }; /** * Rebuild the widget inputs from the compact session run view. * * The server sends semantic facts only: node identity, kind, state, attempts, * and bounded detail. The widget keeps its existing rendering, coloring, and * scrolling code. This adapter restores the shape that code consumes so the * session snapshot never has to carry complete run history. */ export declare function widgetRunInput(run: WorkflowSessionRunView): WidgetRunInput;