export function getSelectionState(editorEl: any): { collapsed: boolean; startNode: null; endNode: null; selectedText: string; activeFormats: Set; currentTag: string; range: null; }; export function restoreRange(range: any): void; export function withSavedSelection(fn: any): any;