export interface FlowExportCategory {
  name: string
  slug: string
}

export interface FlowExportData {
  name: string
  description: string | null
  tree_type: 'troubleshooting' | 'procedural' | 'maintenance'
  version: number
  author_name: string | null
  category: FlowExportCategory | null
  tags: string[]
  tree_structure: Record<string, unknown>
  intake_form: Record<string, unknown>[] | null
}

export interface RFFlowFile {
  rfflow_version: string
  exported_at: string
  source_app: string
  flow: FlowExportData
}

export interface FlowImportResponse {
  tree_id: string
  name: string
  tree_type: string
  status: string
  category_created: boolean
  tags_created: string[]
  validation_warnings: string[]
}
