import type { History, HistoryItem } from '../types'; export interface HistoryValue extends History { top?: HistoryItem; } export interface HistoryDispatcher { push: (action: HistoryItem) => void; pop: () => void; undo: () => void; redo: () => void; set: (history: History) => void; select: (action: HistoryItem) => void; clearSelect: () => void; reset: () => void; } export type HistoryValueDispatcher = [HistoryValue, HistoryDispatcher]; export default function useHistory(): HistoryValueDispatcher;