import type { Emitter } from 'mitt'
import type { Music } from './store/useMusicRequest'
import mitt from 'mitt'

export declare interface MittType<T = any> {
  onOpenTemplateSettings: { template: string }
  onMusicRequestPlayerEnded: { music: Music }
  onMusicRequestPlayNextWaitingMusic: never
  onOBSComponentUpdate: never
  [key: string | symbol]: any
}
// 类型
const emitter: Emitter<MittType> = mitt<MittType>()

// 导出
export default emitter
