Represents a function that listens for events and handles them accordingly.
The event object containing data related to the triggered event.
Rest
Additional arguments that may be passed to the listener.
The return value of the listener, which can vary based on implementation.
Represents a function that listens for events and handles them accordingly.