import { type VizLegendOptions } from '@grafana/schema'; import { SeriesVisibilityChangeMode } from '../PanelChrome/types'; export declare function mapMouseEventToMode(event: React.MouseEvent): SeriesVisibilityChangeMode; /** * `displayMode: hidden` is deprecated in favour of `showLegend: false`. The v37 migration normalizes stored * v1 dashboards, but the value can still arrive via v2 dashboards, dashboards written at schemaVersion >= 37, * or options built in code. VizLegend renders nothing for it, so a legend passed to VizLayout would reserve * an empty slot that measures 0px, and the viz is never sized. * * @internal */ export declare function shouldShowLegend(legend: Pick): boolean;