import { HistoryConfig, SourceData } from '../typings'; export declare class History { /** * 保存历史数组的队列,越新的数据越靠前 * @protected */ protected historyList: SourceData[]; /** * 当前回退/重做操作后对应的index下标,回退对应index++,重做对应index-- * @protected */ protected historyIndex: number; /** * 配置 * @protected */ protected config: HistoryConfig; constructor({ config }: { config: HistoryConfig; }); save(data: SourceData): SourceData | undefined; revert(): SourceData | undefined; redo(): SourceData | undefined; }