1 | declare class DataTransfer {
|
2 | constructor(data: any);
|
3 | /**
|
4 | * Is this likely to be a rich text data transfer?
|
5 | */
|
6 |
|
7 | isRichText(): boolean;
|
8 |
|
9 | /**
|
10 | * Get raw text.
|
11 | */
|
12 |
|
13 | getText(): string | null | undefined;
|
14 | /**
|
15 | * Get HTML paste data
|
16 | */
|
17 |
|
18 | getHTML(): string | null | undefined;
|
19 |
|
20 | /**
|
21 | * Is this a link data transfer?
|
22 | */
|
23 |
|
24 | isLink(): boolean;
|
25 |
|
26 | /**
|
27 | * Get a link url.
|
28 | */
|
29 |
|
30 | getLink(): string | null | undefined;
|
31 | /**
|
32 | * Is this an image data transfer?
|
33 | */
|
34 | isImage(): boolean;
|
35 |
|
36 | getCount(): number | null;
|
37 |
|
38 | /**
|
39 | * Get files.
|
40 | */
|
41 | getFiles(): any[];
|
42 |
|
43 | /**
|
44 | * Are there any files to fetch?
|
45 | */
|
46 | hasFiles(): boolean;
|
47 | }
|
48 |
|
49 | declare namespace DataTransfer {}
|
50 |
|
51 | export = DataTransfer;
|