import { type ReactElement } from "react"; import { type GeoLegendPosition } from "../../types/config/legend.js"; import { type ILegendModel } from "../../types/legend/model.js"; import { type LegendMessageFormatter } from "./legendMessages.js"; /** * Props for MultiLayerLegendPanel component. * * @internal */ export interface IMultiLayerLegendPanelProps { /** * Legend model containing all sections. */ model: ILegendModel; /** * Whether the legend should render at all. * Allows the caller to gate the component without extra branching. */ enabled?: boolean; /** * Legend position relative to the chart. */ position?: GeoLegendPosition; /** * Optional maximum height in pixels (for scrollable legend). */ maxHeightPx?: number; /** * Set of layer IDs that are currently hidden. * Controlled externally - layers not in this set are visible. */ hiddenLayers?: Set; /** * Callback when layer visibility changes. * Called when user toggles the visibility switch for a layer. */ onLayerVisibilityChange?: (layerId: string) => void; /** * Callback when a legend item is clicked. * Called when user clicks a category item to toggle its visibility. * * @param layerId - The ID of the layer containing the item * @param uri - The URI of the clicked item */ onItemClick?: (layerId: string, uri: string) => void; /** * Enables enhanced a11y semantics and live announcements for legend interactions. */ enableGeoChartA11yImprovements?: boolean; /** * Optional formatter for accessibility messages. */ formatMessage?: LegendMessageFormatter; /** * Optional ref callback to expose panel root DOM element. */ setPanelElementRef?: (element: HTMLDivElement | null) => void; } export declare const MultiLayerLegendPanel: import("react").MemoExoticComponent<({ model, enabled, position, maxHeightPx, hiddenLayers, onLayerVisibilityChange, onItemClick, enableGeoChartA11yImprovements, formatMessage, setPanelElementRef, }: IMultiLayerLegendPanelProps) => ReactElement | null>; //# sourceMappingURL=MultiLayerLegendPanel.d.ts.map