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