import { ChangeLog } from '../changelog'; import { EditorModel } from '../editormodel'; import { ModelAction } from './model'; /** * For undo / redo, that return the opposite action */ export declare type ACTION_INTERFACE = (a: A) => A | undefined; declare type INIT_INTERFACE = (s: S) => void; declare type NEW_ACTION = (a: A) => void; declare type EDIT_ACTION = undefined | ((log: ChangeLog, user: string) => void); /** * Contains 3 items: data object, action (the command), initialier */ export declare type UndoReducerInterface = [ S, ACTION_INTERFACE, INIT_INTERFACE ]; export declare type UndoManagerInterface = [ S, NEW_ACTION, EDIT_ACTION, EDIT_ACTION, () => void ]; export declare type UndoReducerModelInterface = [ EditorModel, (x: ModelAction, page: string) => ModelAction | undefined, INIT_INTERFACE ]; export {}; //# sourceMappingURL=interface.d.ts.map