import type { ScaleLinear, ScaleSymLog, ScaleTime } from 'd3-scale'; import type { SparklineDatapointMetadata } from '../types/sparkline-props.js'; /** * Get x-accessor base on xScale * * @param xScale - The x-axis scale * @returns The sparkline chart x-accessor */ export declare const xAxisAccessor: (xScale: ScaleTime) => (dataPoint: SparklineDatapointMetadata) => number; /** * Get y-accessor base on yScale * * @param yScale - The y-axis scale * @returns The sparkline chart y0-accessor */ export declare const yAccessor: (yScale: ScaleLinear | ScaleSymLog) => (dataPoint: SparklineDatapointMetadata) => number; /** * Get y0-accessor base on yScale * * @param yScale - The y-axis scale * @returns The sparkline chart y0-accessor */ export declare const y0Accessor: (yScale: ScaleLinear | ScaleSymLog) => () => number; /** * Get y1-accessor base on yScale * * @param yScale - The y-axis scale * @returns The sparkline chart y1-accessor */ export declare const y1Accessor: (yScale: ScaleLinear | ScaleSymLog) => (dataPoint: SparklineDatapointMetadata) => number; /** * Get if data-point is a gap * * @param datapoint - The data points * @returns Whether the accessor is defined */ export declare const definedAccessor: (datapoint: SparklineDatapointMetadata) => boolean; /** * Get accessor if data point has gap before and after * * @param dataPoints - The data points * @param index - The index of the data point in the data points array */ export declare const isIsolatedAccessor: (dataPoints: SparklineDatapointMetadata[], index: number) => boolean; /** * Get x-accessor for bar variant of the sparkline chart * * @param xScale - The x-axis scale * @returns The x-accessor for bar variant of the sparkline chart */ export declare const barXAxisAccessor: (xScale: ScaleTime) => (dataPoint: SparklineDatapointMetadata) => number; /** * Get y-accessor for bar variant of the sparkline chart * * * @param yScale - The y-axis scale * @returns The y-accessor for bar variant of the sparkline chart */ export declare const barYAxisAccessor: (yScale: ScaleLinear | ScaleSymLog) => (dataPoint: SparklineDatapointMetadata) => number; /** * Get a bar width for the sparkline chart * * @param datapoint - Sparkline's data point * @param xScale - The x-axis scale * @returns The bar width */ export declare const barWidthAccessor: (datapoint: SparklineDatapointMetadata, xScale: ScaleTime) => number; /** * Get a bar height for the sparkline chart * * @param datapoint - Sparkline's data point * @param yScale - The y-axis scale * @returns The bar height */ export declare const barHeightAccessor: (datapoint: SparklineDatapointMetadata, yScale: ScaleLinear | ScaleSymLog) => number;