import React from 'react'; import type { AxisTooltipContext, AxisTooltipParams } from './axis-tooltip.types'; export interface AxisTooltipOverlayProps { width: number; height: number; params: AxisTooltipParams | null; children: (params: AxisTooltipParams) => React.ReactNode; } /** Presentational overlay; use with your own state if you do not use the hook. */ export declare function AxisTooltipOverlay({ width, height, params, children }: AxisTooltipOverlayProps): React.JSX.Element | null; export interface UseAxisTooltipOptions { /** * When true, registers `showTip` / `hideTip` listeners and drives the overlay. * Typically matches whether the chart shows the RN tooltip overlay (see chart `tooltip` / `renderTooltip`). */ active: boolean; /** Resolved renderer (include {@link createDefaultAxisTooltip} when the consumer does not pass one). */ renderTooltip: (params: AxisTooltipParams) => React.ReactNode; contextRef: React.RefObject; themeSeriesRef: React.RefObject>; width: number; height: number; } export interface UseAxisTooltipResult { attachAxisTooltipListeners: (chart: { on: (ev: string, fn: (...args: any[]) => void) => void; off: (ev: string, fn: (...args: any[]) => void) => void; }) => () => void; renderAxisTooltipOverlay: () => React.ReactNode; } /** * Axis tooltip as React Native UI: listens to ECharts `showTip` / `hideTip`, maps payload with * {@link axisTooltipParamsFromShowTipEvent}, and positions an overlay near the pointer. */ export declare function useAxisTooltip(options: UseAxisTooltipOptions): UseAxisTooltipResult; //# sourceMappingURL=use-axis-tooltip.d.ts.map