import { type ReactElement } from "react"; import { type ILegendSection } from "../../types/legend/model.js"; import { type LegendMessageFormatter } from "./legendMessages.js"; /** * Props for MultiLayerLegendSection component. * * @internal */ export interface IMultiLayerLegendSectionProps { /** * Section data containing layer info and legend groups. */ section: ILegendSection; /** * Unique ID for the section (used for aria-labelledby). */ sectionId: string; /** * Whether the section content is expanded. */ isExpanded?: boolean; /** * Whether the layer is visible on the map. */ isVisible?: boolean; /** * Whether to show the layer visibility toggle switch. * When false, the toggle is hidden (used for single-layer legends). * Defaults to true. */ showToggle?: boolean; /** * Whether this section is flexible (should grow to fill available space). * Set to true for sections whose content exceeds their equal share. */ isFlexible?: boolean; /** * Ref callback to set the section's root DOM element. * Used by parent for height measurements. */ setSectionRef?: (element: HTMLDivElement | null) => void; /** * The section's root DOM element (for internal CSS reading). * Provided by parent from its refs store. */ sectionElement?: HTMLDivElement; /** * Callback when expand/collapse state changes. */ onExpandedChange?: (layerId: string, expanded: boolean) => void; /** * Callback when visibility toggle is clicked. * Toggles the layer visibility state. */ onVisibilityChange?: (layerId: string, visible: boolean) => void; /** * Callback when a legend item is clicked. * Used to toggle individual category items. * * @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 for section header and group content. */ enableGeoChartA11yImprovements?: boolean; /** * Optional formatter for accessibility labels/messages. */ formatMessage?: LegendMessageFormatter; } /** * Multi-layer legend section for a single layer. * * @remarks * Displays the layer title with expand/collapse chevron and visibility toggle. * Shows legend groups (size, color, etc.) when expanded. * * @internal */ export declare const MultiLayerLegendSection: import("react").MemoExoticComponent<({ section, sectionId, isExpanded, isVisible, showToggle, isFlexible, setSectionRef, sectionElement, onExpandedChange, onVisibilityChange, onItemClick, enableGeoChartA11yImprovements, formatMessage, }: IMultiLayerLegendSectionProps) => ReactElement>; //# sourceMappingURL=MultiLayerLegendSection.d.ts.map