export declare const binarySearch: (array: TItem[], value: TValue, comparator: (a: TValue, b: { value: TItem; index: number; }) => number) => number;