augnitosdk
Version:
AugnitoSDK lets you make use of the Speech Recognition AI. You can edit, format and complete reports at the speed of human speech, with the best-in-class accuracy
36 lines (35 loc) • 1.41 kB
TypeScript
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<ActionRecipe>): void;
/**
* Process the command in the current editor
* @param command The command received from the server
*/
onCommandResult(command: Partial<ActionRecipe>): 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<ActionRecipe>): 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 };