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
42 lines (41 loc) • 1.65 kB
TypeScript
import { EditorType } from '../core/EditorType';
import { ActionRecipe } from '../../recipe/ActionRecipe';
import { BaseInteropProcessor } from './BaseInteropProcessor';
import { InteropProcessor } from './InteropProcessor';
type HTMLEditor = HTMLTextAreaElement | HTMLInputElement;
declare class HTMLInteropProcessor extends BaseInteropProcessor implements InteropProcessor {
constructor(loggingEnabled: boolean);
private _buffer;
get buffer(): string;
get editorType(): EditorType;
processFinalResult(recipe: Partial<ActionRecipe>, editor: HTMLEditor): void;
processCommand(command: Partial<ActionRecipe>, editor: HTMLEditor): boolean;
private stringWriteAtCaret;
private selectWordLineSentence;
private getDelimiterArray;
private isTextSelected;
private deleteSelected;
private getSelectedText;
private copySelected;
private undo;
private redo;
private print;
private getStartOfLine;
private getEndOfLine;
/**
* We called this part of code, client side beatification.
* In client side beatification text need to be processed for better formatting
* @param receivedText The Final text received by the server
* @param caretPosition The cursor position in the current editor
* @param currentText The current content in the editor
*/
private beautify;
private trimLeft;
private setCaretPosition;
private fireEvents;
private getCaretPosition;
private searchDynamicFiled;
private searchDynamicFieldForward;
private searchDynamicFieldBackward;
}
export { HTMLInteropProcessor };