import { NodeAnnotation, NodeAnnotationTypeEnum } from './node-annotation.abstract';
import { Nullable } from '../../../../types/general';
import { AnnotationStyle, VegaRTEColorSchema } from '../../interface';
/**
 * Annotation to make text with text color
 */
export declare class TextColorAnnotation extends NodeAnnotation {
  readonly type: NodeAnnotationTypeEnum;
  textColor: VegaRTEColorSchema;
  constructor(textColor: string);
  /**
   * Generate the map item for the annotation
   *
   * @param {string} textColor - text color annotation
   * @returns {[NodeAnnotationTypeEnum.TEXT_COLOR, TextColorAnnotation]} Map item for the annotation
   */
  static from(textColor: string): [NodeAnnotationTypeEnum.TEXT_COLOR, TextColorAnnotation];
  /**
   * Generate the JSON representation of the annotation
   *
   * @returns {Record<string, unknown>} JSON representation of the annotation
   */
  toJSON(): Record<string, unknown>;
  /**
   * @inheritDoc
   */
  clone(): TextColorAnnotation;
  /**
   * @inheritDoc
   */
  renderClass(): Nullable<string>;
  /**
   * @inheritDoc
   */
  renderStyle(): Nullable<AnnotationStyle>;
  /**
   * format text color
   *
   * @param {string} textColor - text color
   * @returns {VegaRTEColorSchema} - VegaRTEColorSchema
   */
  private formatTextColor;
}
