import type { DataXY } from 'cheminfo-types';
/**
 * Computes the weighted median of the x values, using the y values as weights.
 * This is the x value that splits the total weight (sum of y) into two equal halves.
 * If the cumulative weight lands exactly at 50%, the result is the average of the two surrounding x values.
 * @param data - x should be sorted in increasing order, y values are used as weights and should be non-negative.
 * @returns The weighted median x value, or NaN if the data is empty.
 */
export declare function xyMedian(data: DataXY): number;
//# sourceMappingURL=xyMedian.d.ts.map