Type representing a function to add a listener.
The type of the parameter for the callback function.
The callback function to be invoked.
A promise that resolves to an unsubscribe function.
Type representing a function to add a listener.