import type { ChartKey, ResolvedColorScale } from './types.js'; export interface CategoricalLegendItem { key: string; value: TValue; label: string; color: string; } export interface CategoricalLegendLayout { columns: number; rows: number; itemWidth: number; } export declare function resolveCategoricalLegendItems(colors: ResolvedColorScale, format?: (value: TValue) => string): readonly CategoricalLegendItem[]; export declare function layoutCategoricalLegendItems(itemCount: number, width: number, minimumItemWidth: number): CategoricalLegendLayout;