A record mapping event names to their argument tuple types.
Wait for the next occurrence of a specific event, optionally matching a predicate.
This is a convenience method that subscribes to the dispatcher, waits for the next event that matches the predicate (if provided), and then unsubscribes automatically.
The event name to wait for.
Optionaloptions: EventDispatcherWaitOptions<Events[K]>Optional settings including predicate and abort signal.
A promise that resolves with the event arguments as an array.
Interface representing an object that allows listeners to register for event dispatching.