/** * This file contains the commands and handling of history related tasks */ import { HistoryItem } from '../history'; import { UndoReducerInterface } from './interface'; /** * Drill down more levels */ export interface PushAction { act: 'push'; value: HistoryItem[]; } /** * Drill up some levels. Number of levels is defined by the 'value' propery */ export interface PopAction { act: 'pop'; value: number; } /** * Replace the current page history by the given one */ export interface ReplaceAction { act: 'replace'; value: HistoryItem[]; } export declare type HistoryAction = (PushAction | PopAction | ReplaceAction) & { type: 'history'; }; export declare function useHistory(x: HistoryItem[]): UndoReducerInterface; //# sourceMappingURL=history.d.ts.map