1 | import type { MaybePromise } from './executor.js';
|
2 | /**
|
3 | * Given an AsyncIterable and a callback function, return an AsyncIterator
|
4 | * which produces values mapped via calling the callback function.
|
5 | */
|
6 | export declare function mapAsyncIterator<T, U>(iterator: AsyncIterable<T> | AsyncIterator<T>, onNext: (value: T) => MaybePromise<U>, onError?: any, onEnd?: () => MaybePromise<void>): AsyncIterableIterator<U>;
|