You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
640 B
Plaintext

/**
* @description 整合差异备份和内容备份,进行统一管理
* @author fangzhicong
*/
import NodeCache from './node';
import HtmlCache from './html';
import Editor from '../../index';
export default class ContentCache {
editor: Editor;
/**
* 内容备份的管理器
*/
cache?: HtmlCache | NodeCache;
constructor(editor: Editor);
/**
* 初始化绑定
*/
observe(): void;
/**
* 保存
*/
save(mutations: MutationRecord[]): void;
/**
* 撤销
*/
revoke(): boolean | undefined;
/**
* 恢复
*/
restore(): boolean | undefined;
}