import { AgChartOptions, AgSeriesVisibilityChange, AgChartInstance } from 'ag-charts-types'; import { MapTopologyType } from '../chart-components/maps/useTopology'; import { AgMapLineSeriesTooltipRendererParams } from 'ag-charts-enterprise'; import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ExtractPropTypes, PropType } from 'vue'; import { PvChartProps } from '../PvChart/types'; export interface PvMapChartData { [key: string]: string | number; } export interface RegionSelectionChangedEvent { region: string | null | undefined; } export interface PvMapChartProps { /** The data key whose values are mapped to the color gradient on the map. Must match a key in the chart data objects. */ seriesKey: string; /** Human-friendly label shown for the value in the default tooltip. Falls back to `seriesKey` when omitted. */ seriesLabel?: string; /** The geographic granularity of the map. Currently only `"state"` is fully supported. */ mapType?: MapTopologyType; /** When true, renders the color gradient legend above the map. */ displayGradientLegend?: boolean; /** When true, renders the region selector dropdown above the map. */ displayRegionSelector?: boolean; /** Minimum value for the gradient legend scale. */ gradientLegendMin?: number; /** Maximum value for the gradient legend scale. */ gradientLegendMax?: number; /** Formatter function for values displayed in the gradient legend. Defaults to percent formatting. */ seriesValueFormatter?: (value: number) => string; /** When true, displays a loading spinner overlay on the chart. */ isLoading?: boolean; /** When true, clicking a region selects/deselects it. Set to false to render a non-interactive map. */ clickable?: boolean; /** Custom message displayed when chart data is empty. */ noDataMessage?: string; /** Custom tooltip renderer for map regions. Receives AG Charts tooltip params with the region datum. */ tooltipRenderer?: (params: AgMapLineSeriesTooltipRendererParams) => string | HTMLElement; } declare const _default: DefineComponent<{ chartData: PvMapChartData[]; selectedRegion?: string | undefined; } & PvMapChartProps, { getChartImageDataURL: (dimensions?: { width?: number; height?: number; }) => Promise | undefined; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:chartData": (value: PvMapChartData[]) => any; "update:selectedRegion": (value: string | undefined) => any; } & { "region-selection-changed": (event: RegionSelectionChangedEvent) => any; }, string, PublicProps, Readonly<{ chartData: PvMapChartData[]; selectedRegion?: string | undefined; } & PvMapChartProps> & Readonly<{ "onUpdate:chartData"?: ((value: PvMapChartData[]) => any) | undefined; "onUpdate:selectedRegion"?: ((value: string | undefined) => any) | undefined; "onRegion-selection-changed"?: ((event: RegionSelectionChangedEvent) => any) | undefined; }>, { isLoading: boolean; mapType: MapTopologyType; displayGradientLegend: boolean; displayRegionSelector: boolean; gradientLegendMin: number; gradientLegendMax: number; seriesValueFormatter: (value: number) => string; clickable: boolean; }, {}, {}, {}, string, ComponentProvideOptions, false, { pvChartRef: CreateComponentPublicInstanceWithMixins & Readonly<{ "onSeries-visibility-change"?: ((event: AgSeriesVisibilityChange) => any) | undefined; }>, { getChartImageDataURL: (dimensions?: { width?: number; height?: number; }) => Promise | undefined; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & { "series-visibility-change": (event: AgSeriesVisibilityChange) => any; }, PublicProps, { seriesFormatType: "none" | "currency" | "percent"; isLoading: boolean; enableFocusView: boolean; minHeight: number; translateNullValues: boolean; }, false, {}, {}, GlobalComponents, GlobalDirectives, string, { chartRef: CreateComponentPublicInstanceWithMixins; default: () => AgChartOptions; }; }>> & Readonly<{}>, { chart: AgChartInstance | undefined; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, { options: AgChartOptions; }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly< ExtractPropTypes<{ options: { type: PropType; default: () => AgChartOptions; }; }>> & Readonly<{}>, { chart: AgChartInstance | undefined; }, {}, {}, {}, { options: AgChartOptions; }> | null; }, HTMLDivElement, ComponentProvideOptions, { P: {}; B: {}; D: {}; C: {}; M: {}; Defaults: {}; }, Readonly< PvChartProps> & Readonly<{ "onSeries-visibility-change"?: ((event: AgSeriesVisibilityChange) => any) | undefined; }>, { getChartImageDataURL: (dimensions?: { width?: number; height?: number; }) => Promise | undefined; }, {}, {}, {}, { seriesFormatType: "none" | "currency" | "percent"; isLoading: boolean; enableFocusView: boolean; minHeight: number; translateNullValues: boolean; }> | null; }, HTMLDivElement>; export default _default;