export default function binarySearch(cumsum: number[], value: number): number;