import mitt from "mitt"

export const EVENT_PROMPT = "prompt"

export const EVENT_CUSTOM_MASK = "custom_mask"
export interface CustomMaskEventData {
  mask: File
}

export const EVENT_PAINT_BY_EXAMPLE = "paint_by_example"
export interface PaintByExampleEventData {
  image: File
}

export const RERUN_LAST_MASK = "rerun_last_mask"

export const DREAM_BUTTON_MOUSE_ENTER = "dream_button_mouse_enter"
export const DREAM_BUTTON_MOUSE_LEAVE = "dream_btoon_mouse_leave"

const emitter = mitt()

export default emitter
