import type { ScaleLinear, ScaleLogarithmic, ScaleSymLog, ScaleTime } from 'd3-scale'; import type { ChartUnit } from '../../../types/chart-unit.js'; import type { Formatter } from '../../../types/formatter.js'; import type { TickValueFormatter } from '../../../types/tick-value.js'; /** * Gets y-axis tick formatter depending on the type of scale. * * As the log scale doesn't support zero or negative values, * the smallest number is EPSILON, and it must be sanitized into a 0 * to represent better human-readable ticks. * * @param scale - axis scale * @param unit - axis unit * @param formatter - axis formatter * @param numTicks - proposed number of ticks * @param precision - tick values precision * * @returns formatter */ export declare function getYAxisTickFormatter(scale: ScaleLogarithmic | ScaleSymLog | ScaleLinear | ScaleTime, unit?: ChartUnit, formatter?: Formatter, numTicks?: number, precision?: number): TickValueFormatter;