/** * Sorts an array of items by a specified key or iterating function without mutating the input array. * * @example * sortBy([{ age: 30 }, { age: 20 }], 'age') // [{ age: 20 }, { age: 30 }] * sortBy([3, 1, 2], (x) => x, 'desc') // [3, 2, 1] */ export declare function sortBy(array: readonly T[], iteratees: keyof T | ((item: T) => any), order?: "asc" | "desc"): T[];