import { TypedEventBus } from "@/boxes/typed-event"

export type GlobalEvent = {
  directory?: string
  project?: string
  workspace?: string
  payload: any
}

export const GlobalBus = new TypedEventBus<{
  event: GlobalEvent
}>()
GlobalBus.setMaxListeners(50)
