/** * This is a binary search that returns the index of the first element in the * array that is greater than or equal to the given value. * * Typical usage: * * ``` * const haystack = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]; * const needle = 3; * const index = binarySearch(haystack.length, i => needle - haystack[i]); * const found = index < haystack.length && haystack[index] === needle; * ``` */ export declare function binarySearch(high: number, compare: (i: number) => number): number; //# sourceMappingURL=binary-search.d.ts.map