import type { ScaleLinear, ScaleSymLog, ScaleTime } from 'd3-scale'; import type { ChartUnit } from '../../../../core/types/chart-unit.js'; import type { TimeseriesDatapoint } from '../../../../core/types/timeseries.js'; import { SeriesMetadata, WeakMapDatapoints } from '../../../types/timeseries.js'; /** * Return boolean related if data-point is gap * * @param dataPoint - The data point * @param datapointsMap - Data points metadata map * @returns Whether the accessor is defined */ export declare const definedAccessor: (dataPoint: TimeseriesDatapoint, datapointsMap: WeakMapDatapoints) => boolean; /** * Get x-accessor base on xScale * * @param xScale - The x-axis scale * @param dataPointsMap - * @param clampedScale - the clamped scale * @returns The area chart x-accessor */ export declare const xAxisAccessor: (xScale: ScaleTime, dataPointsMap: WeakMapDatapoints, clampedScale: ScaleTime) => (dataPoint: TimeseriesDatapoint) => number; /** * Get y0-accessor base on yScale * * @param yScale - The y-axis scale * @param dataPointsMap - Data points metadata map * @returns The area chart y0-accessor */ export declare const y0AxisAccessor: (yScale: ScaleSymLog | ScaleLinear, dataPointsMap: WeakMapDatapoints) => (dataPoint: TimeseriesDatapoint) => number; /** * Get y1-accessor base on yScale * * @param yScale - The y-axis scale * @param dataPointsMap - Data points metadata map * @returns The area chart y0-accessor */ export declare const y1AxisAccessor: (yScale: ScaleSymLog | ScaleLinear, dataPointsMap: WeakMapDatapoints) => (dataPoint: TimeseriesDatapoint) => number; /** * Get curry accessor of the y1-accessor * * @returns y1AxisAccessor */ export declare function y1(yScaleByUnit: (unit: ChartUnit) => ScaleSymLog | ScaleLinear, seriesMetadata: SeriesMetadata, datapointsMap: WeakMapDatapoints): (dataPoint: TimeseriesDatapoint) => number; /** * Get curry accesor of the y0-accessor * * @returns y0AxisAccessor */ export declare function y0(yScaleByUnit: (unit: ChartUnit) => ScaleSymLog | ScaleLinear, seriesMetadata: SeriesMetadata, datapointsMap: WeakMapDatapoints): (dataPoint: TimeseriesDatapoint) => number;