import { Class_MenuConfig } from './MenuConfig'; export declare const history_size: number; /** * Class that contains all elements to make the application work * * @class Class_ApplicationData */ export declare class Class_ApplicationHistory { /** * Table that contains function to go Forward or Backward * @protected * @memberof Class_ApplicationHistory */ protected _transitions_table: { toNext: () => void; toPrev: () => void; }[]; /** * Current index for transition table * * @protected * @type {number} * @memberof Class_ApplicationHistory */ protected _index_table: number; /** * Min index for transition table - cannot undo if index = index_min * @protected * @type {number} * @memberof Class_ApplicationHistory */ protected _index_table_min: number; /** * Max index for transition table - cannot redo if index = index max * * @protected * @type {number} * @memberof Class_ApplicationHistory */ protected _index_table_max: number; /** * True if we can undo action * @protected * @type {boolean} * @memberof Class_ApplicationHistory */ protected _can_undo: boolean; /** * True if we can redo action * @protected * @type {boolean} * @memberof Class_ApplicationHistory */ protected _can_redo: boolean; private _menu_config; /** * Create instance of Class_ApplicationHistory * @param application_data */ constructor(menu_config: Class_MenuConfig); /** * Save undo function * @param f */ saveUndo(f: () => void): void; /** * Save redo function * @param f */ saveRedo(f: () => void): void; /** * Go back */ applyUndo(): void; /** * Go forward */ applyRedo(): void; protected increaseIndexes(): void; get can_undo(): boolean; get can_redo(): boolean; }