import type FirePlayer from 'fireplayer'

type Chapters = {
  start: number
  end: number
  title: string
}[]

interface Option {
  chapters?: Chapters
}

interface Result {
  name: 'fireplayerPluginChapter'
  update: (option: Option) => void
}

declare const fireplayerPluginChapter: (option: Option) => (fire: FirePlayer) => Result

export default fireplayerPluginChapter
