import type { ChartColor } from '../../../../avocado-suite'; import type { ChartSeriesConfig } from './chart.types'; /** * Returns the pixel width the chart content should occupy. * * When there are more categories than fit in the viewport, the result is * larger than `containerWidth` so the parent can enable horizontal scroll. * * @param containerWidth - Measured width of the scroll viewport in pixels. * @param dataLength - Number of data categories (bars, points, or x-axis labels). * @param minCategoryWidth - Minimum horizontal space per category in pixels. * @returns Content width in pixels; `0` when the container is not measured yet. */ export declare function getChartContentWidth(containerWidth: number, dataLength: number, minCategoryWidth?: number): number; /** * Returns the pixel height the chart content should occupy. * * When there are more categories than fit in the default viewport, the result * exceeds `CHART_HEIGHT` so each row has enough vertical space. * * @param dataLength - Number of data categories (rows on the Y axis). * @param minCategoryHeight - Minimum vertical space per category in pixels. * @param fixedHeight - When provided, overrides the computed height. * @returns Content height in pixels. */ export declare function getChartContentHeight(dataLength: number, minCategoryHeight?: number, fixedHeight?: number): number; /** * Returns the pixel width the category Y axis should occupy. * * Uses the longest label in `data` when no fixed width is provided. */ export declare function getCategoryAxisWidth(data: unknown[], xKey: string, fixedWidth?: number): number; /** * Color token configured for `key` in the JSON `series`, for Suite charts. Values that are not * design-system tokens (a hex, for example) are ignored, so the series keeps its palette color. */ export declare function getSeriesColorToken(series: readonly ChartSeriesConfig[] | undefined, key: string): ChartColor | undefined;