import type { MeasurementXY, OneLowerCase } from 'cheminfo-types'; import type { Shape1D } from 'ml-peak-shape-generator'; export interface PeakPickingOptions { /** x variable label, by default 'x' */ xVariable?: OneLowerCase; /** y variable label, by default 'y' */ yVariable?: OneLowerCase; /** should we look for the closest min / max, default true */ optimize?: boolean; /** options of the peak shape fit */ shape?: Shape1D; /** are we looking for maxima or minima, default true */ max?: boolean; } /** * Based on a x value we will return a peak * if you set optimize=True the returned positions will be * the closest actual datapoints to the fitted peak location. * the x/y of the fitted peak will be in xOptimized and yOptimized * @param spectrum * @param target * @param options */ export declare function peakPicking(spectrum: MeasurementXY, /** value to search (on x axis) */ target: number, options?: PeakPickingOptions): { [key: string]: number; optimized?: any; } | undefined; //# sourceMappingURL=peakPicking.d.ts.map