type MappedAsyncIterator = AsyncIterableIterator & AsyncGenerator; /** * Maps async iterator values and forwards return() without waiting for pending reads. * Method arguments and completed results pass through unchanged. Values yielded * by throw() or return() are mapped, and iteration can continue. * * onError may produce one final value. onClose runs once on completion or failure, * after source and callback references are cleared. The source must settle its * pending reads when closed. */ export declare function mapAsyncIterator(source: AsyncIterator, map: (value: Awaited) => R, onError?: (error: unknown) => E, onClose?: () => void | Promise): MappedAsyncIterator | Awaited>; export {}; //# sourceMappingURL=map-async-iterator.d.ts.map