import { AsyncMapper, Mapper } from 'augmentative-iterable'; export interface ToSetFunction { /** * Create a Set from the iterable. This is a resolving operation */ (): Set; /** * Create a Set from the iterable. This is a resolving operation * @param mapper: Maps the first iterated item to the Map value type */ (mapper: Mapper): Set; /** * Create a Set from the iterable. This is a resolving operation * @param mapper: The key of the item from where the value will be extracted */ (mapper: K): Set; } export interface AsyncToSetFunction { /** * Create a Set from the iterable. This is a resolving operation */ (): Promise>; /** * Create a Set from the iterable. This is a resolving operation * @param mapper: Maps the first iterated item to the Map value type */ (mapper: AsyncMapper): Promise>; /** * Create a Set from the iterable. This is a resolving operation * @param mapper: The key of the item from where the value will be extracted */ (mapper: K): Promise>; }