/** * Converts an array of key-value pairs into an object. * * @param {any[]} pairs - An array of key-value pairs where each key is a `PropertyKey` and each value is of type `U`. * @returns {Record} - An object where the keys are from the first element and values are from the second element. * * @example * const pairs = [['a', 1], ['b', 2]]; * const result = fromPairs(pairs); * // result will be: { a: 1, b: 2 } */ declare function fromPairs(pairs: readonly any[]): Record; /** * Converts an array of key-value pairs into an object. * * @template T - The type of the keys in the resulting object. It must extend `PropertyKey`. * @template U - The type of the values in the resulting object. * * @param {Array<[T, U]>} pairs - An array of key-value pairs where each key is a `PropertyKey` and each value is of type `U`. * @returns {Record} - An object where the keys are of type `T` and the values are of type `U`. * * @example * const pairs = [['a', 1], ['b', 2]]; * const result = fromPairs(pairs); * // result will be: { a: 1, b: 2 } */ declare function fromPairs(pairs: ReadonlyArray<[T, U]> | Map): Record; export { fromPairs };