import { ScaleMetadata } from './yAxis.js'; import { MinMax } from '../../core/types/min-max.js'; import { TimeseriesDatapoint } from '../../core/types/timeseries.js'; import { TimeseriesBandDataPoint } from '../types/timeseries-band.js'; import { WeakMapDatapoints, WeakMapSeries, type ChartVariantInternal, type TimeseriesSlotProps } from '../types/timeseries.js'; /** * Calculates the yAxis value-range depending on a given timeseries-array each containing data-points. * Depending on the passed chart-variant, the value-range can be: * - non-stacked (e.g.: line): range from min value to max value across all datapoints for all series * - stacked (e.g.: area): range from the sum of all min values to the sum of all max values across all datapoints grouped by timestamp * * @param series - The series that serves as base for calculating the value-range of the datapoints. * @param variant - The variant (or type) of the Chart, e.g. 'line', 'area', 'bar', 'band'. * @param leftAxisMetadata - metadata set from previous geometries on the left axis * @param rightAxisMetadata - metadata set from previous geometries on the right axis * @param seriesMap - series metadata map * @param datapointsMap - data points metadata map * @returns an object containing [key] as unit of the scale and value as the value-ranges for the given series depending on the chart-variant */ export declare function getYAxisValueDomainsByUnit(series: TimeseriesSlotProps[], variant: ChartVariantInternal, leftAxisMetadata: ScaleMetadata, rightAxisMetadata: ScaleMetadata, seriesMap: WeakMapSeries, datapointsMap: WeakMapDatapoints): ScaleMetadata[]; export declare const getLineMinMax: (datapointsMap: WeakMapDatapoints, datapoints: TimeseriesDatapoint[]) => MinMax; export declare const getStackedMinMax: (datapointsMap: WeakMapDatapoints, datapoints: TimeseriesDatapoint[]) => MinMax; export declare const getBandMinMax: (datapointsMap: WeakMapDatapoints, datapoints: TimeseriesBandDataPoint[]) => MinMax;