import React from "react"; import type { TagMinMax } from "../hooks/useSeriesMinMax"; import type { ChartConfig, CursorData, View, ViewTagsMap, scopeType } from "../models/TrendingModelsV2"; interface TrendingState { viewTags: ViewTagsMap; viewSelected: View | null; views: View[]; timeScopeStart: Date; timeScopeEnd: Date; scope: scopeType; shouldRefetchSeries: boolean; cursorData: CursorData | null; chartConfig: ChartConfig; seriesMinMax: TagMinMax; seriesPointCounts: Record; chartPlotWidth: number; highlightedSeries: string | null; cursor1Time: number; cursor2Time: number; selectedCursor: "cursor1" | "cursor2" | null; } interface TrendingActions { setViewTags: (viewTags: ViewTagsMap) => void; setViewTagsAndRefetch: (viewTags: ViewTagsMap) => void; setViewSelected: (view: View | null) => void; setViews: (views: View[]) => void; setTotalScope: (scope: { start?: Date; end?: Date; scope?: scopeType; graphPan?: boolean; }) => void; setCursorData: (data: CursorData | null) => void; setChartConfig: (config: Partial) => void; triggerSeriesRefetch: () => void; setSeriesMinMax: (minMax: TagMinMax) => void; setSeriesPointCounts: (counts: Record) => void; setChartPlotWidth: (width: number) => void; highlightSeries: (seriesName: string | null) => void; updateCursor1Time: (time: number) => void; updateCursor2Time: (time: number) => void; setSelectedCursor: (cursor: "cursor1" | "cursor2" | null) => void; resetCursors: () => void; } interface TrendingContextValue { state: TrendingState; actions: TrendingActions; } export declare const TrendingProviderV2: React.FC<{ children: React.ReactNode; }>; export declare const useTrendingContextV2: () => TrendingContextValue; export {};