import type { compareFn, mapFn } from './_types';
/**
 * Binary searches rightmost value in sorted array.
 * @param x an array (sorted)
 * @param v search value
 * @param fc compare function (a, b)
 * @param fm map function (v, i, x)
 * @returns last index of value | ~(index of closest value)
 */
declare function bsearchRight<T, U = T>(x: T[], v: T, fc?: compareFn<T | U>, fm?: mapFn<T, T | U>): number;
export default bsearchRight;
//# sourceMappingURL=index.d.ts.map