| 1 |
export declare enum fileReaderType { |
| 2 |
text = "text", |
| 3 |
dataURL = "dataURL" |
| 4 |
} |
| 5 |
/** |
| 6 |
* Read a file using the FileReader API, either as a plain text string or as a DataURL string. |
| 7 |
* Returns a promise which will resolve with the file contents as a string or reject with a DOMException. |
| 8 |
* |
| 9 |
* @param {File} fileHandle - File object to read |
| 10 |
* @param {fileReaderType} type - How to read it |
| 11 |
*/ |
| 12 |
export declare function readFile(fileHandle: File, type: fileReaderType): Promise<unknown>; |
| 13 |
//# sourceMappingURL=fileUtils.d.ts.map |