1 | import { ProgressEvent } from './progress-event';
|
2 | export declare type ProgressEventListener = (event: ProgressEvent) => void;
|
3 | export declare type ProgressEventListenerObject = {
|
4 | handleEvent(event: ProgressEvent): void;
|
5 | };
|
6 | export declare type ProgressEventListenerOrEventListenerObject = ProgressEventListener | ProgressEventListenerObject;
|
7 | export declare class XMLHttpRequestEventTarget {
|
8 | onloadstart: ProgressEventListener | null;
|
9 | onprogress: ProgressEventListener | null;
|
10 | onabort: ProgressEventListener | null;
|
11 | onerror: ProgressEventListener | null;
|
12 | onload: ProgressEventListener | null;
|
13 | ontimeout: ProgressEventListener | null;
|
14 | onloadend: ProgressEventListener | null;
|
15 | private listeners;
|
16 | addEventListener(eventType: string, listener?: ProgressEventListenerOrEventListenerObject): void;
|
17 | removeEventListener(eventType: string, listener?: ProgressEventListenerOrEventListenerObject): void;
|
18 | dispatchEvent(event: ProgressEvent): boolean;
|
19 | }
|