import { AsyncIterableX } from '../../asynciterable/asynciterablex.js'; import { toMap, ToMapOptions } from '../../asynciterable/tomap.js'; export async function toMapProto( this: AsyncIterable, options: ToMapOptions ): Promise> { return toMap(this, options); } AsyncIterableX.prototype.toMap = toMapProto; declare module '../../asynciterable/asynciterablex' { interface AsyncIterableX { toMap: typeof toMapProto; } }