import { Context } from '../contexts/Context'; import { View } from './View'; import { RichTextDesc } from './ViewDescriptions'; import { Word, TextRun, TextLine, HorizontalAlignment } from './helpers'; export interface LineCache { [width: number]: TextLine[]; } export declare class RichTextView extends View { private textRuns; alignment: HorizontalAlignment; lineGap: number; private lineCache; static fromDesc(desc: RichTextDesc): RichTextView; constructor(); toJSON(): any; addTextRun(textRun: TextRun): void; breakTextRunsIntoGraphicWords(context: Context): Word[]; breakTextRunsIntoLinesForWidth(context: Context, lineWidth: number): TextLine[]; getContentWidth(context: Context): number; _getContentHeightForWidth(context: Context, width: number): number; drawSelf(context: Context): void; }