import { Language, SlideId } from '../types'

export type PresenterState = 'idle' | 'presenting' | 'paused' | 'answering' | 'resuming'

export interface PresenterConfig {
  autoAdvance: boolean
  speechRate: number
  pauseBetweenSlides: number
  language: Language
}

export interface SlideScript {
  slideId: SlideId
  duration: number
  paragraphs: {
    text_de: string
    text_en: string
    pause_after: number
  }[]
  transition_hint_de?: string
  transition_hint_en?: string
}

export interface FAQEntry {
  id: string
  keywords: string[]
  question_de: string
  question_en: string
  answer_de: string
  answer_en: string
  goto_slide?: SlideId
  priority: number
}

export const DEFAULT_PRESENTER_CONFIG: PresenterConfig = {
  autoAdvance: true,
  speechRate: 1.0,
  pauseBetweenSlides: 2000,
  language: 'de',
}
