1 | /// <reference types="node" />
|
2 | import { Readable } from 'stream';
|
3 | import { StreamableFileOptions } from './streamable-options.interface';
|
4 | export declare class StreamableFile {
|
5 | readonly options: StreamableFileOptions;
|
6 | private readonly stream;
|
7 | constructor(buffer: Uint8Array, options?: StreamableFileOptions);
|
8 | constructor(readable: Readable, options?: StreamableFileOptions);
|
9 | getStream(): Readable;
|
10 | getHeaders(): {
|
11 | type: string;
|
12 | disposition: string;
|
13 | length: number;
|
14 | };
|
15 | }
|