/** * Normalize an array of object like the following : * * In this example, key = 'id' * [{id:"x", other: "some value"},{id:"y", other: "some value"}] * * TO * * { * x: {id:"x", other: "some value"} * y: {id:"y", other: "some value"} * } * @param {*} arr input array of object to convert * @param {*} key object key to extract */ import { Index } from './index'; export declare const normalizeArray: (arr: Array, key: K) => Index; export declare const denormalize: (index: Index) => Array<[string, T]>;