/** * Helper functions that have to do with * [sets](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set). * * @module */ /** * Helper function to add all of the values in one set to another set. The first set passed will be * modified in place. * * This function is variadic, meaning that you can specify N sets to add to the first set. */ export declare function addSetsToSet(mainSet: Set, ...setsToAdd: ReadonlyArray>): void; /** * Helper function to create a new set that is the composition of two or more sets. * * This function is variadic, meaning that you can specify N sets. */ export declare function combineSets(...sets: ReadonlyArray>): ReadonlySet; /** Helper function to copy a set. (Under the hood, this simply calls the `Set` constructor.) */ export declare function copySet(oldSet: ReadonlySet): ReadonlySet; /** Helper function to convert the keys of an object to a set. */ export declare function objectKeysToSet(object: Record): ReadonlySet; /** Helper function to convert the values of an object to a set. */ export declare function objectValuesToSet(object: Record): ReadonlySet; /** * Helper function to add one or more elements to a set at once without having to repeatedly call * the `Set.add` method. * * This function is variadic, meaning that you can pass as many things as you want to add. */ export declare function setAdd(set: Set, ...elements: readonly T[]): void; /** * Helper function to check for one or more elements in a set at once without having to repeatedly * call the `Set.has` method. * * This function is variadic, meaning that you can pass as many things as you want to check for. It * will return true if one or more elements are found. */ export declare function setHas(set: ReadonlySet, ...elements: readonly T[]): boolean; //# sourceMappingURL=set.d.ts.map