import type { AppearWord } from '@/page/subject/learnWord/normalMode/interface'

export interface Level {
  accent?: string
  levelId: string
  sessionId: string
  levelType: number
  spell: string
  title: string
  titleType: number
  titlePicture: null | string
  titleTips: null | string
  charList: Array<Character>
  wordId: string
  usedTime?: number
  sentenceDisplaySpell: string
  [key: string]: any
}

export interface Character {
  value: string
  // 是否为答案的字母之一
  choose: boolean
  // 答案中有多少个此字母
  maxChoose: number
  // 是否被选择到输入框了（包括放大镜选中的）
  selected?: boolean
  // 是否被放大镜选中了
  fixed?: boolean
  // 是否被道具清除了
  prop?: boolean
}

export interface Statistics {
  allRightCount: number
  bomb: number
  count: number
  glass: number
  rightCount: number
  spell: string
  surrender: number
  wordId: string
  appearWordList: Array<AppearWord>
  znDesc: string | null
  typeAbbr: string | null
  wordImg: string | null
}

export interface contentType {
  value: string
  count?: number
  selected?: boolean
  isLong?: boolean
  type?: string
  isSpecial?: boolean
  isIcon?: true
  iconName?: string
  iconHeight?: number
  iconWidth?: number
  onActive?: boolean
  countTotal?: number
  name?: string
  hasAnimation?: boolean
}
