// 流程相关类型定义
export interface FlowNode {
  id: string
  type: string
  position: { x: number; y: number }
  data: any
  label?: string
}

export interface FlowEdge {
  id: string
  source: string
  target: string
  sourceHandle?: string
  targetHandle?: string
  type?: string
  animated?: boolean
  style?: any
  markerEnd?: any
}

export interface FlowData {
  nodes: FlowNode[]
  edges: FlowEdge[]
  metadata?: {
    nodeCount: number
    edgeCount: number
    createdAt: string
    version: string
  }
}

export interface FlowBuilderProps {
  initialValue?: FlowData
  agentId?: string
}
