import { BaseHandler } from './base-handler';
/** Handles inserting text into a VegaRTEContent based on the current selection and input event. User input character will trigger this callback */
export declare class InsertTextHandler extends BaseHandler {
  /**
   * Update the state value when user type character
   *
   * @param {InputEvent} event - The input event object
   */
  handleEvent(event: InputEvent): void;
  /**
   * Insert the text in root element when root container is empty, should create text block and text node
   *
   * @param {string} text The insert text
   * @returns {RTETextNode} The new create text node
   */
  private insertTextToRoot;
  /**
   * Insert text to a line break node need a special logic if the line break has a next text node.
   *
   * @param {RTETextNode} lineBreakNode The current line break node, the text value is \n
   * @param {string} text The text need to insert
   * @returns {Nullable<RTETextNode>} The new text node or the current line break node
   */
  private insertTextToLineBreakNode;
}
