/** * Undo/redo history stack for the custom editor. */ export function createHistory(limit?: number): { record: (html: any) => void; undo: (currentHtml: any) => any; redo: () => any; canUndo: () => boolean; canRedo: () => boolean; startComposition: () => void; endComposition: (html: any) => void; clear: () => void; readonly length: number; };