/** * The following code is modified based on * https://github.com/webpack/webpack/tree/4b4ca3bb53f36a5b8fc6bc1bd976ed7af161bd80/lib/util * * MIT Licensed * Author Tobias Koppers @sokra * Copyright (c) JS Foundation and other contributors * https://github.com/webpack/webpack/blob/main/LICENSE */ export type Comparator = (arg0: T, arg1: T) => -1 | 0 | 1; type Selector = (input: A) => B; export declare const concatComparators: (...comps: Comparator[]) => Comparator; export declare const compareIds: (a: T, b: T) => -1 | 0 | 1; export declare const compareSelect: (getter: Selector, comparator: Comparator) => Comparator; export declare const compareNumbers: (a: number, b: number) => -1 | 0 | 1; export {};