import type { CandlePoint, LiveChartPoint } from "../types"; /** A fresh wrapper per SharedValue notification, including same-array modify(). */ export interface HistoryRevision { data: T[]; } /** Per-engine, one-entry cache. Only committed history belongs here. */ export interface HistoryRangeCache { revision: object | undefined; data: LiveChartPoint[] | CandlePoint[] | undefined; candle: boolean; start: number; end: number; min: number; max: number; minTime: number; maxTime: number; } export declare function makeHistoryRangeCache(): HistoryRangeCache; /** * Reuse only when a trusted revision AND both visible index bounds match. * Without a revision, always scan: identity/length cannot detect in-place edits. * The caller owns the cache; live candles, references and animation stay outside. */ export declare function historyRange(data: LiveChartPoint[] | CandlePoint[], candle: boolean, from: number, to: number, revision: object | undefined, cache: HistoryRangeCache): HistoryRangeCache; //# sourceMappingURL=historyRangeCache.d.ts.map