/**
 * Common Types
 */

// File types
export interface FileItem {
  id: string
  filename: string
  file_type: string
  size?: number
  status: string
  created_at: string
  updated_at: string
}

// Chunk types
export interface Chunk {
  id: string
  name?: string
  content: string
  summary?: string
  word_count?: number
  file_id?: string
  created_at: string
  updated_at: string
}

// Question types
export interface Question {
  id: string
  content: string
  answer?: string
  question_type?: string
  chunk_id?: string
  source: string
  created_at: string
  updated_at: string
}

// Dataset types
export interface Dataset {
  id: string
  name: string
  description?: string
  dataset_type?: string
  question_count?: number
  created_at: string
  updated_at: string
}

// Dialog props
export interface DialogProps {
  visible: boolean
  loading?: boolean
}

export interface DeleteDialogProps extends DialogProps {
  itemName?: string
  itemType?: string
}
