export declare type Comparator<X, Y = X> = (x: X, y: Y) => boolean;