import { ReactNode } from 'react'; import { ChartColors } from '../../../style/theme'; export declare const useChartId: () => string; export type ChartLegendState = { selectedResources: string[]; addSelectedResource: (resource: string) => void; removeSelectedResource: (resource: string) => void; selectAllResources: () => void; selectOnlyResource: (resource: string) => void; isSelected: (resource: string) => boolean; getColor: (resource: string) => string | undefined; getLabel: (resource: string) => string; listResources: () => string[]; isOnlyOneSelected: () => boolean; register: (chartId: string, seriesNames: string[]) => void; }; export type ChartLegendWrapperProps = { children: ReactNode; colorSet: Record | ((seriesNames: string[]) => Record); sortOrder?: 'alphabetical' | 'status' | ((a: string, b: string) => number); /** Optional display labels for legend items, keyed by resource name */ labelMap?: Record; }; export declare const ChartLegendWrapper: ({ children, colorSet, sortOrder, labelMap, }: ChartLegendWrapperProps) => import("react/jsx-runtime").JSX.Element; export declare const useChartLegend: () => ChartLegendState; //# sourceMappingURL=ChartLegendWrapper.d.ts.map