// Type definitions for stream-to-promise 2.2 // Project: https://github.com/bendrucker/stream-to-promise // Definitions by: Alorel // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /** * Return a promise which resolves when the input stream ends * @param stream The input stream * @returns A promise containing the stream output as a buffer */ declare function streamToPromise(stream: NodeJS.ReadableStream): Promise; /** * Return s promise which resolves when the input stream ends * @param stream The input stream */ declare function streamToPromise(stream: NodeJS.WritableStream): Promise; export = streamToPromise;