import { ScaleTypes, ScaleTypesMap } from '../../../types/scale-types-map.js'; import { type RectDatapointInternal, type XYChartAreaSeriesInternal, type XYChartAreaVariant, XYChartAxisInternal, type XYChartOrientation, type XYChartBarSeriesInternal, type XYChartDotSeriesInternal, type XYChartLineSeriesInternal, type XYChartRectSeriesInternal } from '../../../types/xy-chart-internals.js'; import { DotDatapoint, type LineDatapoint, type XYAccessorDataTypes, type XYChartData } from '../../../types/xy-chart.js'; export declare function getDatumValue(datum: XYChartData, path: string | string[] | ((data: XYChartData) => string) | undefined): XYAccessorDataTypes | undefined; export declare function getPoint(datum: XYChartData, path: string | undefined, axisType: T): ScaleTypesMap[T]['castDataType']; /** * Generic function to generate a data point from the provided datum and series properties. * Used internally by getDotDatapoint and getLineDatapoint. * * @param datum - The individual data point. * @param seriesProps - The series path properties. * @param xAxis - The x-axis internal configuration. * @param yAxis - The y-axis internal configuration. * @returns - The data point, or undefined if any required value is missing or invalid. */ export declare function getBaseDatapoint(datum: XYChartData, seriesProps: XYChartDotSeriesInternal | XYChartLineSeriesInternal, xAxis: XYChartAxisInternal, yAxis: XYChartAxisInternal): T | undefined; /** * Generates a dot data point from the provided datum and series properties. * * @param datum - The individual data point. * @param seriesProps - The series path properties for the dot. * @param xAxis - The x-axis internal configuration. * @param yAxis - The y-axis internal configuration. * @returns - The dot series data point, or undefined if any required value is missing or invalid. */ export declare function getDotDatapoint(datum: XYChartData, seriesProps: XYChartDotSeriesInternal, xAxis: XYChartAxisInternal, yAxis: XYChartAxisInternal): DotDatapoint | undefined; /** * Generates a rect data point from the provided datum and series properties. * * @param datum - The individual data point. * @param seriesProps - The series paths properties for the rect. * @param xAxis - The x-axis internal configuration. * @param yAxis - The y-axis internal configuration. * @returns - The rect data point, or undefined if any required value is missing or invalid. */ export declare function getRectDatapoint(datum: XYChartData, seriesProps: XYChartRectSeriesInternal, xAxis: XYChartAxisInternal, yAxis: XYChartAxisInternal): RectDatapointInternal | undefined; /** * Generates a line data point from the provided datum and series properties. * * @param datum - The individual data point. * @param seriesProps - The series path properties for the line. * @param xAxis - The x-axis internal configuration. * @param yAxis - The y-axis internal configuration. * @returns - The line series data point, or undefined if any required value is missing or invalid. */ export declare function getLineDatapoint(datum: XYChartData, seriesProps: XYChartLineSeriesInternal, xAxis: XYChartAxisInternal, yAxis: XYChartAxisInternal): LineDatapoint | undefined; export declare const getAxisType: (axisName: "x" | "y", xAxis: XYChartAxisInternal, yAxis: XYChartAxisInternal) => "time" | "categorical" | "numerical.linear" | "numerical.log"; export declare const getChartOrientation: ({ x1Accessor, x0Accessor, y1Accessor, y0Accessor, }: XYChartBarSeriesInternal | XYChartAreaSeriesInternal) => XYChartOrientation | undefined; export declare const getChartAreaVariant: (chartOrientation: XYChartOrientation, seriesProps: XYChartAreaSeriesInternal) => XYChartAreaVariant;