/** * Returns a boolean indicating whether the *object* has the specified *key* * as its own property (as opposed to inheriting it). If the *object* is a * *Map* or *Set* instance, the *has* method will be invoked directly on the * object, otherwise *Object.hasOwnProperty* is used. * @template {string | number} K * @template V * @param {Map|Set|Record} object The object, Map, or Set to * test for property membership. * @param {K} key The property key to test for. * @return {boolean} True if the object has the given key, false otherwise. */ export function has(object: Map | Set | Record, key: K): boolean; /** * Returns an array of a given *object*'s own enumerable property names. If * the *object* is a *Map* instance, the *keys* method will be invoked * directly on the object, otherwise *Object.keys* is used. * @template {string | number} K * @template V * @param {Map|Record} object The input object or Map value. * @return {K[]} An array of property key name strings. */ export function keys(object: Map | Record): K[]; /** * Returns an array of a given *object*'s own enumerable property values. If * the *object* is a *Map* or *Set* instance, the *values* method will be * invoked directly on the object, otherwise *Object.values* is used. * @template {string | number} K * @template V * @param {Map | Set | Record} object The input object, Map, * or Set value. * @return {V[]} An array of property values. */ export function values(object: Map | Set | Record): V[]; /** * Returns an array of a given *object*'s own enumerable keyed property * `[key, value]` pairs. If the *object* is a *Map* or *Set* instance, the * *entries* method will be invoked directly on the object, otherwise * *Object.entries* is used. * @template {string | number} K * @template V * @param {Map | Set | Record} object The input object, Map, * or Set value. * @return {[K, V][]} An array of property values. */ export function entries(object: Map | Set | Record): [K, V][]; /** * Returns a new object given iterable *entries* of `[key, value]` pairs. * This method is Arquero's version of the *Object.fromEntries* method. * @template {string | number} K * @template V * @param {Iterable<[K, V]>} entries An iterable collection of `[key, value]` * pairs, such as an array of two-element arrays or a *Map*. * @return {Record} An object of consolidated key-value pairs. */ export function object(entries: Iterable<[K, V]>): Record;