import type { ExploreAggregations } from '@kong-ui-public/analytics-utilities'; import type { Chart, Plugin } from 'chart.js'; import type { Threshold, ThresholdType } from 'src/types'; import type { createI18n } from '@kong-ui-public/i18n'; import type english from '../../locales/en.json'; interface ThresholdOptions { threshold: Record | undefined; } type ThresholdExtra = Threshold & { hovered?: boolean; }; export type ThresholdIntersection = { start: number; end: number; type: ThresholdType; }; export declare const getThresholdIntersections: (chart: Chart, thresholds: Threshold[]) => ThresholdIntersection[]; export declare const mergeThresholdIntersections: (intersections: ThresholdIntersection[]) => ThresholdIntersection[]; export declare class ThresholdPlugin implements Plugin { private i18n; id: string; private _thresholds?; private _mouseMoveHandler?; constructor(i18n: ReturnType>); private _syncThresholds; get thresholds(): Record<"active_services" | "error_rate" | "request_count" | "request_per_minute" | "response_latency_average" | "share_of_requests" | "cache_hit_rate" | "response_latency_p99" | "response_latency_p95" | "response_latency_p50" | "upstream_latency_p99" | "upstream_latency_p95" | "upstream_latency_p50" | "upstream_latency_average" | "kong_latency_p99" | "kong_latency_p95" | "kong_latency_p50" | "kong_latency_average" | "kong_internal_latency_p99" | "kong_internal_latency_p95" | "kong_internal_latency_p50" | "kong_internal_latency_average" | "response_size_p99" | "response_size_p95" | "response_size_p50" | "response_size_average" | "response_size_sum" | "request_size_p99" | "request_size_p95" | "request_size_p50" | "request_size_average" | "request_size_sum", ThresholdExtra[]> | undefined; beforeUpdate(chart: Chart, _: any, pluginOptions: ThresholdOptions): void; beforeInit(chart: Chart, _: any, pluginOptions: ThresholdOptions): void; afterDatasetsDraw(chart: Chart, _: any): void; beforeDestroy(chart: Chart): void; } export {}; //# sourceMappingURL=ThresholdPlugin.d.ts.map