import type { N8nNode } from './workflow'; export interface WorkflowGraph { nodes: Map; edges: GraphEdge[]; entryPoints: string[]; exitPoints: string[]; hasCycles: boolean; } export interface GraphNode { name: string; type: string; data: N8nNode; successors: string[]; predecessors: string[]; depth: number; } export interface GraphEdge { source: string; target: string; sourceOutput: number; targetInput: number; outputType: string; } export interface GraphPath { nodes: string[]; edges: GraphEdge[]; }