/// import { finished, Readable, Writable } from "stream"; export declare const whenFinished: typeof finished.__promisify__; export declare function writeAll(stream: Writable, data?: string): Promise; export declare function readAll(stream: Readable): Promise; export declare function streamify(streamPromise: Promise): Readable; export declare const timeoutToken: unique symbol; export declare function withTimeout(promise: Promise, timeout?: number): Promise;