import mitt from 'mitt'

type UIInteractionDescriptor = {
  command: string
  data: {
    weather?: string
    [key: string]: any
  }
}

const bus = mitt<{
  emitUIInteraction: UIInteractionDescriptor
}>()

export default bus
export type { UIInteractionDescriptor }