import type { Clearable, Activeble, Disposable } from '../Common'; type EditorDesCallback = (des: Des) => void; type FocusChangeCallback = (drawer: T) => void; export declare abstract class BaseEditor> implements Clearable, Activeble, Disposable { readonly id: string; readonly editorDes: Des; protected focusedCallback: FocusChangeCallback | undefined; protected defocusCallback: FocusChangeCallback | undefined; constructor(id: string); protected abstract createEditorDes(): Des; dispose(): void; protected abstract disposeData(): void; onFocus(callback: FocusChangeCallback): T; onDefocus(callback: FocusChangeCallback): T; custom(callback: EditorDesCallback): T; /** * 清空绘制的图形 */ abstract clear(): T; /** * 开启功能 */ abstract active(): T; /** * 结束功能 */ abstract deactive(): T; /** * 刷新所有图形 */ abstract refreshGeo(): void; } export {};