import mitt, { type EventType } from 'mitt'

export interface EventList extends Record<EventType, unknown> {
  login?: string
  logout?: string
  browserReflash: string
  connect_ws?: string
  disconnect_ws?: string
  openPage?: string
  closePage: string
  loading: 'start' | 'finish' | 'error'
}

export default mitt<EventList>()
