import { PlainObject } from "../models.mjs"; //#region src/array/to-set.d.ts /** * Create a _Set_ from an array of items using a callback * * @param array Array to convert * @param callback Callback to get an item's value * @returns _Set_ of values * * @example * ```typescript * toSet( * [{id: 1}, {id: 2}, {id: 3}], * item => item.id, * ); // => Set { 1, 2, 3 } * ``` */ declare function toSet unknown>(array: Item[], callback: Callback): Set>; /** * Create a _Set_ from an array of items using a key * * @param array Array to convert * @param key Key to use for value * @returns _Set_ of values * * @example * ```typescript * toSet( * [{id: 1}, {id: 2}, {id: 3}], * 'id', * ); // => Set { 1, 2, 3 } * ``` */ declare function toSet(array: Item[], key: ItemKey): Set; /** * Create a _Set_ from an array of items * * @param array Array to convert * @returns _Set_ of items * * @example * ```typescript * toSet([1, 2, 3]); // => Set { 1, 2, 3 } * ``` */ declare function toSet(array: Item[]): Set; //#endregion export { toSet };