import { CSSUIObject, PropGetter } from '@yamada-ui/core'; import { Dict } from '@yamada-ui/utils'; import * as Recharts from 'recharts'; import { TooltipProps } from './chart.types.mjs'; import 'react'; interface UseChartTooltipOptions { /** * A function to format labels on inside the tooltip. */ labelFormatter?: (label: string) => string; /** * Specifies the duration of animation, the unit of this option is ms. * * @default 0 */ tooltipAnimationDuration?: number; /** * A function to format values on inside the tooltip. */ valueFormatter?: (value: any) => string; /** * Props passed down to recharts 'Tooltip' component. */ tooltipProps?: TooltipProps; } interface UseChartTooltipProps extends UseChartTooltipOptions { styles: Dict; } declare const useChartTooltip: ({ styles, tooltipAnimationDuration, tooltipProps: _tooltipProps, }: UseChartTooltipProps) => { getTooltipProps: PropGetter>, Recharts.TooltipProps>; tooltipProps: Omit, string>; }; export { type UseChartTooltipOptions, useChartTooltip };