import { BarChartTranslations } from '../shared/translations'; import { BarChartUnit, BarProps, MaxScaleValue, ScaleTickCount } from '../shared/types'; export declare const calculatePercent: ({ value, total, }: { value: number; total: number; }) => number; export declare const calculateBarWidth: ({ value, maxScaleValue, }: { value: number; maxScaleValue: MaxScaleValue; }) => number; /** * Formats a numeric value with optional unit for bar chart labels. */ export declare const formatValueWithUnit: ({ value, unit, locale, }: { value: number; unit: string; locale?: string; }) => string; export declare const formatNumberUnitCompact: ({ num, locale, }: { num: number; locale?: string; }) => string; /** * Sort bars based on sortBy and order configuration */ export declare const sortBars: ({ bars, sortBy, order, }: { bars: T[]; sortBy: "label" | "value" | "none"; order: "ascending" | "descending"; }) => T[]; /** * Returns the accessibility summary for a bar row. The summary is used as aria-label on the row's link/button when interactive, or as screenreader-only text when not. Summaries come from stackedBarSummary (stacked rows) or singleValueBarSummary (single-value rows), with default implementations when not overridden. */ export declare const getValuesSummary: ({ seriesOneValue, seriesTwoValue, unit, categoryLabel, translations, }: Pick & Required> & { translations: BarChartTranslations; }) => string; /** * Calculates the value for a given label position (scale min is always 0). */ export declare const getLabel: ({ tickCount, labelIndex, maxScaleValue, }: { tickCount: ScaleTickCount; labelIndex: number; maxScaleValue: MaxScaleValue; }) => number; /** * Calculates the percentage position for a given value within 0–maxScaleValue range. * Returns a value between 0 and 100 representing the position percentage. */ export declare const calculatePositionPercent: ({ value, maxScaleValue, }: { value: number; maxScaleValue: MaxScaleValue; }) => number; /** * Generates a stable key for a bar row (for React list keys). */ export declare const getBarRowKey: (bar: Pick, index: number) => string;