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