import { Evented } from 'apprt-core/Events'; /** * @module api */ /** * Interface for the history service (reference `"mapnavigation.History"`). */ interface History extends Evented<{ update: void; }> { /** * True if `undo()` can be called at least once. */ readonly canUndo: boolean; /** * True if `redo()` can be called at least once */ readonly canRedo: boolean; /** * Moves back to the last state, or does nothing if there is no such state. */ undo(): void; /** * Advances to the next state, or does nothing if there is no such state. */ redo(): void; } export type { History };