import type { XYChartAxisInternal } from '../types/xy-chart-internals.js'; import type { XYChartXAxisPosition, XYChartYAxisPosition } from '../types/xy-chart.js'; export type XYChartAxisPosition = XYChartXAxisPosition | XYChartYAxisPosition | 'top' | 'bottom' | 'left' | 'right'; export type FormatCategory = (axis: XYChartAxisInternal | XYChartAxisPosition | undefined, raw: string | undefined) => string | undefined; /** * Returns a stable function that formats a raw category string using the * categorical axis formatter. The axis can be addressed by position (`'top'`) * or by passing the internal axis config directly. Falls back to the raw value * when the axis isn't categorical, has no formatter, or the value is missing. * * @internal */ export declare const useFormatCategory: () => FormatCategory;