import { AsyncIterableX } from '../../asynciterable/asynciterablex';
export declare function toMapProto<TSource, TKey>(this: AsyncIterableX<TSource>, keySelector: (item: TSource) => TKey | Promise<TKey>): Promise<Map<TKey, TSource>>;
export declare function toMapProto<TSource, TKey, TElement = TSource>(this: AsyncIterableX<TSource>, keySelector: (item: TSource) => TKey | Promise<TKey>, elementSelector?: (item: TSource) => TElement | Promise<TElement>): Promise<Map<TKey, TElement>>;
declare module '../../asynciterable/asynciterablex' {
    interface AsyncIterableX<T> {
        toMap: typeof toMapProto;
    }
}
