import { type EnrollmentCriteria, type WorkflowActionType, type WorkflowGraph } from './workflow-types'; /** Curated imperative handle for agent / external automation. */ export interface WorkflowEditorHandle { getTotalSteps: () => number; getCurrentStep: () => string | null; gotoStep: (id: string) => void; } export interface WorkflowEditorProps { /** DAG-shaped graph. v1 renders the linear chain via `linearOrder`. */ graph: WorkflowGraph; /** * Fires for INTERNAL mutations only — add / reorder. Never fired for * edit or delete (those have their own callbacks). When `isActive` * is true the editor MUST NOT call this. */ onChange: (graph: WorkflowGraph) => void; /** Optional enrollment-criteria summary rendered as a fixed header card. */ enrollmentCriteria?: EnrollmentCriteria; /** Fires when the "Edit criteria" CTA in the criteria header is clicked. */ onEditEnrollmentCriteria?: () => void; /** Locks ALL mutation controls and shows the active-lock banner. */ isActive?: boolean; /** * Action types available in the add-action DropdownMenu. * Defaults to every key in `workflowActionRegistry`. */ availableActions?: WorkflowActionType[]; /** Fires when a node's edit IconButton is clicked. Consumer owns the form. */ onEditNode?: (nodeId: string) => void; /** Fires when a node's delete IconButton is clicked. Consumer confirms. */ onDeleteNode?: (nodeId: string) => void; className?: string; } export declare const WorkflowEditor: import("react").ForwardRefExoticComponent>; //# sourceMappingURL=workflow-editor.d.ts.map