UNPKG

765 BTypeScriptView Raw
1import { _SPInstance } from "../spqueryable.js";
2export declare class ReadableFile<T = any> extends _SPInstance<T> {
3 /**
4 * Gets the contents of the file as text. Not supported in batching.
5 *
6 */
7 getText(): Promise<string>;
8 /**
9 * Gets the contents of the file as a blob, does not work in Node.js. Not supported in batching.
10 *
11 */
12 getBlob(): Promise<Blob>;
13 /**
14 * Gets the contents of a file as an ArrayBuffer, works in Node.js. Not supported in batching.
15 */
16 getBuffer(): Promise<ArrayBuffer>;
17 /**
18 * Gets the contents of a file as an ArrayBuffer, works in Node.js. Not supported in batching.
19 */
20 getJSON(): Promise<any>;
21 private getParsed;
22}
23//# sourceMappingURL=readable-file.d.ts.map
\No newline at end of file