import type { NumberArray } from 'cheminfo-types';
export interface XGetFromToIndexOptions {
    /**
     * Start index (0-based, clamped to array bounds). Takes precedence over `from`.
     * @default 0
     */
    fromIndex?: number;
    /**
     * End index (0-based, clamped to array bounds). Takes precedence over `to`.
     * @default x.length-1
     */
    toIndex?: number;
    /**
     * Start value in the x scale; resolved to the nearest index.
     * @default x[0]
     */
    from?: number;
    /**
     * End value in the x scale; resolved to the nearest index.
     * @default x[x.length-1]
     */
    to?: number;
}
/**
 * Returns an object with {fromIndex, toIndex} for a specific from / to
 * @param x - array of numbers
 * @param options - options.
 */
export declare function xGetFromToIndex(x: NumberArray, options?: XGetFromToIndexOptions): {
    fromIndex: number;
    toIndex: number;
};
//# sourceMappingURL=xGetFromToIndex.d.ts.map