import { type WorkflowGraphProjection, type WorkflowGraphVisit } from 'openxiangda-contracts/browser'; import { type WorkflowVariableChoices } from './workflow-variable-presentation'; export { workflowDiagramProjection } from './workflow-graph-presentation'; export interface WorkflowDiagramProps { graph: WorkflowGraphProjection; /** Optional typed display names; never modifies the executable graph or its raw values. */ variableChoices?: WorkflowVariableChoices; selectedNodeId: string; onSelectNode: (nodeId: string) => void; /** Only overlay titles from the matching effective configuration or frozen visit. */ titles?: Record; /** Optional matching-version summaries, e.g. the effective approval mode. */ summaries?: Record; visits?: readonly WorkflowGraphVisit[]; selectedEdgeId?: string; onMoveNode?: (nodeId: string, edgeId: string) => void; onSelectEdge?: (edgeId: string) => void; onInsertEdge?: (edgeId: string, template?: string) => void; insertionOptions?: Array<{ value: string; label: string; kind: string; }>; /** Fill the host canvas; code explanations can be shown in the host's node panel. */ presentation?: 'embedded' | 'canvas' | 'designer'; } /** Read-only graph and accessible list share the platform's immutable projection. */ export declare function WorkflowDiagram({ graph: sourceGraph, variableChoices, selectedNodeId, onSelectNode, titles, summaries, visits, selectedEdgeId, onSelectEdge, onMoveNode, onInsertEdge, insertionOptions, presentation }: WorkflowDiagramProps): import("react/jsx-runtime").JSX.Element; //# sourceMappingURL=WorkflowDiagram.d.ts.map