/** * @fileoverview Library for working with lazy tree like stream of chunks. * @license * SPDX-License-Identifier: Apache-2.0 */ import { Stream as StreamInterface } from './interfaces.js'; /** Constructor function for creating a stream object. */ export declare function createStream(): StreamInterface; /** * Returns true if the provided object implements the AsyncIterator protocol via * implementing a `Symbol.asyncIterator` method. */ export declare function isAsyncIterable(maybeAsyncIterable: unknown): maybeAsyncIterable is AsyncIterable; /** A function to aggregate an AsyncIterable to a PromiseLike thenable. */ export declare function thenableAsyncIterable(this: AsyncIterable, onfulfilled?: ((value: T[]) => TResult1 | PromiseLike) | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike) | null): Promise; /** Make an asyncIterable PromiseLike. */ export declare function awaitableAsyncIterable(iter: AsyncIterable): AsyncIterable & PromiseLike;