1 | import { FileObject, SliceType } from "../../LargeFileUploadTask";
|
2 | import { Range } from "../Range";
|
3 |
|
4 |
|
5 |
|
6 |
|
7 | export declare class StreamUpload implements FileObject<NodeStream> {
|
8 | content: NodeStream;
|
9 | name: string;
|
10 | size: number;
|
11 | |
12 |
|
13 |
|
14 |
|
15 |
|
16 | private previousSlice;
|
17 | constructor(content: NodeStream, name: string, size: number);
|
18 | /**
|
19 | * @public
|
20 | * Slices the file content to the given range
|
21 | * @param {Range} range - The range value
|
22 | * @returns The sliced file part
|
23 | */
|
24 | sliceFile(range: Range): Promise<SliceType>;
|
25 | |
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | private readNBytesFromStream;
|
32 | }
|