/** * Returns the average position of the part of a histogram between two fractions of its total: * the brightness the auto exposure exposes for, which leaves out the darkest and the brightest * parts of the screen. The bins at the two fractions count with the part of them which lies * between, so the average changes gradually as the brightness of the screen shifts across them. * * @param {ArrayLike} histogram - The weight of each bin. * @param {number} lowPercent - The fraction of the total, 0-1, below which the darkest bins are * left out. * @param {number} highPercent - The fraction of the total, 0-1 and above the low one, above which * the brightest bins are left out. * @returns {number} The average position, as a fractional bin index, or -1 when nothing is left * between the two fractions, as for an empty histogram. * @ignore */ export function meterHistogram(histogram: ArrayLike, lowPercent: number, highPercent: number): number;