import React from 'react'; import { type FieldConfig, type FieldSparkline } from '@grafana/data'; import { type GraphFieldConfig } from '@grafana/schema'; import { type Themeable2 } from '../../types/theme'; /** Hovered point emitted by `Sparkline`'s `onHover`; `null` on leave and unmount. */ export interface SparklineHoverEvent { index: number; value: number; /** `value` formatted via the y-field display processor. */ display: string; } export interface SparklineProps extends Themeable2 { width: number; height: number; config?: FieldConfig; sparkline: FieldSparkline; showHighlights?: boolean; /** Render a built-in tooltip on hover. Enabling this (or `onHover`) enables the cursor. */ showTooltip?: boolean; /** Emits the latest point at most once per animation frame; `null` immediately on leave/unmount. Enables the cursor. */ onHover?: (hover: SparklineHoverEvent | null) => void; } export declare const Sparkline: React.FC;