/** * Identity function */ export declare const identity: (arg: T) => T; declare type SortingFunction = (a: any, b: any) => number; /** * Turn a less-than-or-equal-to operation into a function which returns 1, 0, or -1 for sorting. * @param {(Object,Object) => Bool} leq - function implementing less-than-equal-to for the desired ordering. */ export declare function leqToNumericOrdering(leq: (a: any, b: any) => boolean): SortingFunction; /** * Map a function over the arguments of a function before calling the function */ export declare function mapArguments(fn: (...args: Array) => any, argMap: (arg: any) => any): (...args: Array) => any; /** * Compose orderings lexically to create a single combined ordering. */ export declare function lexicalCompose(...args: Array): SortingFunction; export declare const defaultOrdering: SortingFunction; export {};