import { LinkAnnotation } from '../annotations/link-annotation';
import { TextSplittableAction } from './splittable-action.abstract';
import { VegaRTELink } from '../../interface';
/**
 * Action to toggle link annotation
 */
export declare class LinkAnnotationAction extends TextSplittableAction {
  isFlushable: boolean;
  link: VegaRTELink;
  newText?: string;
  needMergeNode?: boolean;
  type: 'link' | 'update_link';
  constructor({ link, newText, needMergeNode, doSplit, type, }: {
    link: VegaRTELink;
    needMergeNode?: boolean;
    newText?: string;
    doSplit?: boolean;
    type: 'link' | 'update_link';
  });
  /**
   * Converts the action to an annotation
   *
   * @returns {LinkAnnotation} the annotation
   */
  toAnnotation(): LinkAnnotation;
}
