/** * Finds the closest item to a given number in an array using binary search * @argument arr: ascending sorted array * @argument num: number to find * @returns index of the closest item to `num` * @returns -1 if given array is empty */ export declare function findClosest(arr: number[], num: number): number;