import { ActionRecipe } from '../../recipe/ActionRecipe'; import { EditorType } from './EditorType'; import { TargetEditor } from './TargetEditor'; declare class EditorHandler { private _listOfControls; private _editor?; private processorHandler; constructor(_listOfControls: TargetEditor[], _enableLogs: boolean, _editor?: EditorType | undefined); /** * Writes in the current editor * @param recipe The recipe received from the server */ onFinalResult(recipe: Partial): void; /** * Process the command in the current editor * @param command The command received from the server */ onCommandResult(command: Partial): void; /** * To set selected editor for text anchoring * @param activeEditor The editor selected for anchoring */ onSetAnchoredEditor(activeEditor: Element | undefined, editorName: string | null): void; handleDynamicFieldNavigation(recipe: Partial): void; handleGotoDocumentEnd(): void; getCursorPosition(): any; setCursorAtPosition(position: number): void; /** *Intercepts common commands (independent from editors) * @param command The command received from the server * @param activeEditor The current focused editor */ private interfaceSharedCommand; } export { EditorHandler };