/** * Converts the existing async-iterable into a promise which resolves a Set. * * @export * @template TSource The type of elements in the source sequence. * @param {AsyncIterable} source The async-iterable to convert into a set. * @param {AbortSignal} [signal] An optional abort signal to cancel the operation at any time. * @returns {Promise>} A promise which contains a Set with all the elements from the async-iterable. */ export declare function toSet(source: AsyncIterable, signal?: AbortSignal): Promise>;