import type FirePlayer from 'fireplayer'

interface Option {
  width?: number
  height?: number
  placeholder?: string
  fallbackToVideoPiP?: boolean
}

interface Result {
  name: 'fireplayerPluginDocumentPip'
  isSupported: boolean
  isActive: boolean
  open: () => void
  close: () => void
  toggle: () => void
}

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

export default fireplayerPluginDocumentPip
