import type { Fn2 } from "./fn.js"; /** * Generic 2-element comparator function type alias. * * @remarks * Must follow this contract and return: * * - negative if `a < b` * - zero if `a == b` * - positive if `a > b` */ export declare type Comparator = Fn2; /** * Generic interface to compare value types. */ export interface ICompare { /** * Compares this value with given value `x`. MUST follow same * contract as {@link Comparator}. * * @remarks * MUST return 0 if the type also implements `IEquiv` and `equiv` * returns true for same `x`. * * Also see {@link IHash}. * * @param x - compare value */ compare(x: T): number; } //# sourceMappingURL=compare.d.ts.map