// Legacy types for backward compatibility with old components
// These will be gradually replaced with API types

export enum DocumentStatus {
  PENDING = 'Pending',
  LABELED = 'Labeled',
  VERIFIED = 'Verified',
  PARTIAL = 'Partial'
}

export interface Document {
  id: string
  name: string
  date: string
  status: DocumentStatus
  exported: boolean
  autoLabelProgress?: number
  autoLabelStatus?: 'Running' | 'Completed' | 'Failed'
}

export interface Annotation {
  id: string
  text: string
  label: string
  x: number
  y: number
  width: number
  height: number
  isAuto?: boolean
}

export interface TrainingJob {
  id: string
  name: string
  startDate: string
  status: 'Running' | 'Completed' | 'Failed'
  progress: number
  metrics?: {
    accuracy: number
    precision: number
    recall: number
  }
}

export interface ModelMetric {
  name: string
  value: number
}
