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