import { Ordering } from "./ordering"; export declare function findPredecessor(list: T[], element: T, compareFn: (a: T, b: T) => Ordering): T | undefined; /** * Check if an array is sorted * * @param {T[]} array The array to browse * @param {(a: T, b: T) => Ordering} compareFn The comparison function used to determine the order between two elements * @return {boolean} Is the array sorted */ export declare function isSorted(array: T[], compareFn: (a: T, b: T) => Ordering): boolean;