import type { NumberArray } from 'cheminfo-types'; export interface XFindClosestIndexOptions { /** * Is the array sorted ? This allows to make a dichotomic search that is much faster. * @default true */ sorted?: boolean; } /** * Returns the closest index of a `target` * @param array - array of numbers * @param target - target * @param options * @returns - closest index */ export declare function xFindClosestIndex(array: NumberArray, target: number, options?: XFindClosestIndexOptions): number; //# sourceMappingURL=xFindClosestIndex.d.ts.map