import type { ExternalTooltipContext, KChartData, TooltipState, ChartLegendSortFn, LegendValues, EnhancedLegendItem, TooltipInteractionMode } from '../types'; import type { Chart, Point } from 'chart.js'; import type { GranularityValues } from '@kong-ui-public/analytics-utilities'; export declare const isTooltipInteractive: (state: TooltipInteractionMode) => boolean; export declare const lineChartTooltipBehavior: (tooltipData: TooltipState, context: ExternalTooltipContext, granularity: GranularityValues, options?: { contextFormatter?: (x: number, granularity: GranularityValues, raw: unknown) => string | number; }) => void; export declare const tooltipBehavior: (tooltipData: TooltipState, context: ExternalTooltipContext) => void; export declare const hasDatasets: (chartData: KChartData) => number; export declare const hasDataInDatasets: (chartData: KChartData) => boolean | 0; export declare const hasTimeseriesData: (chartData: KChartData) => boolean; export declare const hasExactlyOneDatapoint: (chartData: KChartData) => boolean; export declare const hasMillisecondTimestamps: (chartData: KChartData) => boolean; /** * Adjust the tooltip's horizontal position based on its width and cursor location relative to the chart center. * This logic ensures consistent visual placement of a custom tooltip, as ChartJS offers limited direct control. */ export declare const horizontalTooltipPositioning: (position: Point, tooltipWidth: number, chartCenterX: number) => number; export declare const verticalTooltipPositioning: (position: Point, tooltipHeight: number, chartCenterY: number) => number; export declare function debounce(fn: (...args: any) => any, delay: number): (...args: any) => void; export declare const generateLegendItems: (chart: Chart, legendValues?: LegendValues, chartLegendSortFn?: ChartLegendSortFn) => EnhancedLegendItem[]; //# sourceMappingURL=commonOptions.d.ts.map