import { PlotSeries, PlotCursorEvent } from '@axicharts/charts-canvas'; import { c as ChartLayoutContextValue, C as ChartConfig } from './ChartContainer-D2SxVX55.js'; import { ReactNode, ReactElement } from 'react'; import { ValueFormat } from '@axicharts/charts-core'; import { FunnelStage, PieSlice } from '@axicharts/charts-echarts'; type LegendLayout = "overlay" | "flow"; type LegendProps = { series: PlotSeries[]; /** `overlay` = top of plot (legacy). `flow` = below plot slot (dashboard default). */ layout?: LegendLayout; }; type TooltipRow = { label: string; value: string; color?: string; }; type TooltipProps = { categories?: string[]; series?: PlotSeries[]; valueSuffix?: string; valueFormat?: ValueFormat; getRows?: (index: number) => TooltipRow[] | null; }; type ChartMode = ChartLayoutContextValue["mode"]; type InteractionChrome = { showTooltip: boolean; showLegend: boolean; showCrosshair: boolean; }; declare function getInteractionChrome(mode: ChartMode): InteractionChrome; type EChartsInteractionShellProps = { plot: ReactNode; showCrosshair?: boolean; }; declare function EChartsInteractionShell({ plot, showCrosshair, }: EChartsInteractionShellProps): ReactElement; type ItemHoverEvent = { title: string; rows: TooltipRow[]; left: number; top: number; } | null; type ChartInteractionContextValue = { cursor: PlotCursorEvent; itemHover: ItemHoverEvent; setCursor: (cursor: PlotCursorEvent) => void; setItemHover: (hover: ItemHoverEvent) => void; }; declare function ChartInteractionProvider({ children, }: { children: ReactNode; }): ReactElement; declare function useChartInteraction(): ChartInteractionContextValue; type ApplyChartConfigOptions = { /** Category axis labels — enables per-bar fills from config keys when a single series is used. */ categories?: string[]; }; declare function configLookupKey(item: { key?: string; name: string; }): string; declare function applyChartConfigToSeries(series: PlotSeries[], config: ChartConfig | undefined, options?: ApplyChartConfigOptions): PlotSeries[]; declare function applyChartConfigToPieSlices(slices: PieSlice[], config: ChartConfig | undefined): PieSlice[]; declare function applyChartConfigToFunnelStages(stages: FunnelStage[], config: ChartConfig | undefined): FunnelStage[]; export { ChartInteractionProvider as C, EChartsInteractionShell as E, type LegendProps as L, type TooltipProps as T, type TooltipRow as a, applyChartConfigToSeries as b, configLookupKey as c, applyChartConfigToFunnelStages as d, applyChartConfigToPieSlices as e, getInteractionChrome as g, useChartInteraction as u };