import type { ReactNode } from 'react'; import { ChartState } from '@shopify/polaris-viz-core'; import type { DataSeries, LabelFormatter } from '@shopify/polaris-viz-core'; import type { ComparisonMetricProps } from '../ComparisonMetric'; import type { LegendPosition, RenderHiddenLegendLabel, RenderInnerValueContent, RenderLegendContent, RenderTooltipContentData } from '../../types'; export interface ChartProps { data: DataSeries[]; labelFormatter: LabelFormatter; legendPosition: LegendPosition; seriesNameFormatter: LabelFormatter; showLegend: boolean; showLegendValues: boolean; state: ChartState; theme: string; accessibilityLabel?: string; comparisonMetric?: ComparisonMetricProps; errorText?: string; legendFullWidth?: boolean; renderInnerValueContent?: RenderInnerValueContent; renderLegendContent?: RenderLegendContent; renderHiddenLegendLabel?: RenderHiddenLegendLabel; renderTooltipContent?: (data: RenderTooltipContentData) => ReactNode; total?: number; } export declare function Chart({ data, labelFormatter, legendPosition, showLegend, showLegendValues, state, theme, accessibilityLabel, comparisonMetric, errorText, legendFullWidth, renderInnerValueContent, renderLegendContent, renderHiddenLegendLabel, seriesNameFormatter, renderTooltipContent, total, }: ChartProps): JSX.Element | null; //# sourceMappingURL=Chart.d.ts.map