| 1 |
import { FileWithPath } from './file'; |
| 2 |
/** |
| 3 |
* Convert a DragEvent's DataTrasfer object to a list of File objects |
| 4 |
* NOTE: If some of the items are folders, |
| 5 |
* everything will be flattened and placed in the same list but the paths will be kept as a {path} property. |
| 6 |
* |
| 7 |
* EXPERIMENTAL: A list of https://developer.mozilla.org/en-US/docs/Web/API/FileSystemHandle objects can also be passed as an arg |
| 8 |
* and a list of File objects will be returned. |
| 9 |
* |
| 10 |
* @param evt |
| 11 |
*/ |
| 12 |
export declare function fromEvent(evt: Event | any): Promise<(FileWithPath | DataTransferItem)[]>; |