/** * Iterates over an {@link AsyncIterable} or {@link Iterable}, invoking `visitor` for each yielded * value without rewinding the iterator when exiting early. This enables the caller to continue * iterating in another loop after `visitor` signals cancellation. */ export declare function forEach(iterable: AsyncIterable | Iterable | AsyncIterator, visitor: (value: TValue) => any): Promise; /** * Concatenates all binary chunks yielded by an async or sync iterator. * Supports `ArrayBuffer`, typed array views, and `ArrayBufferLike` sources (e.g. `SharedArrayBuffer`). * This allows atomic parsers to operate on iterator inputs by materializing them into a single buffer. */ export declare function concatenateArrayBuffersAsync(asyncIterator: AsyncIterable | Iterable): Promise; export declare function concatenateStringsAsync(asyncIterator: AsyncIterable | Iterable): Promise; /** * Normalizes binary chunk iterators to yield `ArrayBuffer` instances. * Accepts `ArrayBuffer`, `ArrayBufferView`, and `ArrayBufferLike` sources * (e.g. `SharedArrayBuffer`) and returns a copied `ArrayBuffer` for each chunk. */ export declare function toArrayBufferIterator(asyncIterator: AsyncIterable | Iterable): AsyncIterable; //# sourceMappingURL=async-iteration.d.ts.map