import { Unit } from '@dynatrace-sdk/units'; import { Formatter, type FormatterWithPrecision } from '../types/formatter.js'; import { TickValueFormatter, TickPrimitiveValue } from '../types/tick-value.js'; export declare const DEFAULT_PRECISION = 1; export declare const MAX_PRECISION_ALLOWED = 20; /** * Formats a value to a specified unit. * If the unit received is not in the formatterOptions then it is considered a custom unit. * @param value - The value to format. * @param unit - The unit to format the value to. * @param precision - The precision to format the value to. * @returns The formatted value. */ export declare const formatValue: (value: number, unit?: string | Unit, precision?: number) => string; /** * Computes the minimum precision needed so there's no repeated ticks after formatting. * * @returns number between DEFAULT_PRECISION and MAX_PRECISION_ALLOWED */ export declare function getFormatterPrecision(tickValues: number[], formatter: FormatterWithPrecision, unit?: string | Unit): number; /** * Determines the type of value it is and formats accordingly. * * @param value - The value of the tick. * @param unit - The series unit. * @returns The correct format for the value that has been input. */ export declare const defaultTickValueFormatter: (value: TickPrimitiveValue, unit?: string | Unit) => string; /** * Determines the type of value it is and formats accordingly * * @param tickFormatter - The type of formatter received based on whether scale is logarithmic or not. * @param unit - The series unit. * @returns The formatter to be applied, whether tickFormatter or the default. */ export declare const tickValueFormatter: (tickFormatter?: Formatter, unit?: string | Unit) => TickValueFormatter; export declare const getTickValues: (originalTicks: TickPrimitiveValue[], formatter?: TickValueFormatter) => string[];