import { SortMappingFunction } from './sort-mapping-function.model.js'; /** * Creates a comparator function suitable for use with `Array.prototype.sort`. * * Each argument can be a property path string or a `SortMappingFunction`: * - A plain path (e.g. `'name'`) sorts ascending by that property. * - A path prefixed with `'-'` (e.g. `'-age'`) sorts descending. * - A path suffixed with `'^'` (e.g. `'name^'`) performs a case-insensitive sort. * - The special path `'^'` sorts the items themselves (not a nested property). * - Dot-notation is supported for nested properties (e.g. `'address.city'`). * - Multiple properties are applied left-to-right as tie-breakers. * - An optional `SortMappingFunction` can be provided to transform values * before comparison. * * @param properties - One or more property paths and/or a mapping function. * * @returns A comparator `(a, b) => number` for use with `Array.prototype.sort`. */ export declare function sortBy(...properties: (string | SortMappingFunction)[]): (object1: T, object2: T) => number;