export type GeneralChunk = {
  content: string
  summary?: string
}
export type GeneralChunks = GeneralChunk[]
export type ParentChildChunk = {
  child_contents: string[]
  parent_content: string
  parent_summary?: string
  parent_mode: string
}

export type ParentChildChunks = {
  parent_child_chunks: ParentChildChunk[]
  parent_mode: string
}

export type QAChunk = {
  question: string
  answer: string
}

export type QAChunks = {
  qa_chunks: QAChunk[]
}

export type ChunkInfo = GeneralChunks | ParentChildChunks | QAChunks

export const QAItemType = {
  Question: 'question',
  Answer: 'answer',
} as const
export type QAItemType = typeof QAItemType[keyof typeof QAItemType]
