import type FirePlayer from 'fireplayer'

interface Option {
  solutionPath?: string
  modelSelection?: number
  smoothSegmentation?: boolean
  minDetectionConfidence?: number
  minTrackingConfidence?: number
  selfieMode?: boolean
  drawContour?: boolean
  foregroundThreshold?: number
  opacity?: number
  maskBlurAmount?: number
}

interface Result {
  name: 'fireplayerPluginDanmukuMask'
  start: () => Promise<void>
  stop: () => void
}

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

export default fireplayerPluginDanmukuMask
