EventHandlerMap: {
    [K in AgentEvent["type"]]?: EventListener<Extract<AgentEvent, {
        type: K;
    }>>[]
}

Event handler map