1 | /**
|
2 | * -------------------------------------------------------------------------------------------
|
3 | * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
|
4 | * See License in the project root for license information.
|
5 | * -------------------------------------------------------------------------------------------
|
6 | */
|
7 | import { FileObject, SliceType } from "../../LargeFileUploadTask";
|
8 | import { Range } from "../Range";
|
9 | /**
|
10 | * @class
|
11 | * Class used for creating LargeFileUploadTask fileobject.
|
12 | * This class accepts files of type ArrayBuffer, Blob, Uint8Array.
|
13 | */
|
14 | export declare class FileUpload implements FileObject<SliceType> {
|
15 | content: ArrayBuffer | Blob | Uint8Array;
|
16 | name: string;
|
17 | size: number;
|
18 | /**
|
19 | * @public
|
20 | * @constructor
|
21 | * @param {ArrayBuffer | Blob | Uint8Array} content - The file to be uploaded
|
22 | * @param {string} name - The name of the file to be uploaded
|
23 | * @param {number} size - The total size of the file to be uploaded
|
24 | * @returns An instance of the FileUpload class
|
25 | */
|
26 | constructor(content: ArrayBuffer | Blob | Uint8Array, name: string, size: number);
|
27 | /**
|
28 | * @public
|
29 | * Slices the file content to the given range
|
30 | * @param {Range} range - The range value
|
31 | * The sliced file part
|
32 | */
|
33 | sliceFile(range: Range): ArrayBuffer | Blob | Uint8Array;
|
34 | }
|