UNPKG

521 BTypeScriptView Raw
1/// <reference types="node" />
2import { Readable } from 'stream';
3import { StreamableFileOptions } from './streamable-options.interface';
4export 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}