import type { Draft } from 'immer'; import type { BrushAxis } from '../../EventsTrackers/BrushTracker.js'; import type { State } from '../Reducer.js'; export interface HistoryItem { xDomain: number[]; yDomain: number[]; } export type ZoomHistory = Record; interface BaseZoomHistoryManager { historyStack: HistoryItem[]; push: (value: HistoryItem) => void; setBase: (value: HistoryItem) => void; pop: () => HistoryItem; getLast: () => HistoryItem; } interface ZoomHistoryManager extends BaseZoomHistoryManager { clear: () => void; } export default function zoomHistoryManager(zoomHistory: ZoomHistory, nucleus: string): ZoomHistoryManager; export declare function preparePop(historyStack: any): () => any; export declare function addToBrushHistory(draft: Draft, options: { axis?: BrushAxis | null; xDomain: number[]; yDomain: number[]; }): void; export {}; //# sourceMappingURL=ZoomHistoryManager.d.ts.map