/// import { Readable } from "stream"; /** * Read stream until the waitFor function returns true, then * pause the stream. * @param stream stream to read * @param waitFor return true to resolve */ export declare function streamWait(stream: Readable, waitFor?: ((chunk: T) => boolean)): Promise;