export interface IEventSource { addEventListener: (type: string, callback: (event: T) => void) => void; removeEventListener: (type: string, callback: any) => void; } export declare function fromEvent(source: IEventSource, type: string): AsyncIterableIterator;