import type { ImageRegion, ImageStyle } from '@/app/(admin)/ai/ocr-kombi/types'
import type { GridCell, ColumnMeta } from '@/app/(admin)/ai/ocr-kombi/types'

export const KLAUSUR_API = '/klausur-api'

export const COL_TYPE_COLORS: Record<string, string> = {
  column_en: '#3b82f6',
  column_de: '#22c55e',
  column_example: '#f97316',
  column_text: '#a855f7',
  page_ref: '#06b6d4',
  column_marker: '#6b7280',
}

export interface StepGroundTruthProps {
  sessionId: string | null
  onNext: () => void
}

export interface SessionData {
  cells: GridCell[]
  columnsUsed: ColumnMeta[]
  imageWidth: number
  imageHeight: number
  originalImageUrl: string
}

export type ImageRegionWithState = ImageRegion & { generating?: boolean }

export type GroundTruthStatus = 'loading' | 'ready' | 'saving' | 'saved' | 'error'

export type { GridCell, ColumnMeta, ImageRegion, ImageStyle }
