export declare class EventSource { private listeners; constructor(); on(event: T, callback: (_: U) => void): () => void; protected dispatch(event: T, args: U): void; }