import { Context } from '../../contexts'; import { TextRunDesc } from '../ViewDescriptions'; import { TextStyle } from './TextStyle'; import { Word } from './Word'; export declare class TextRun { style: TextStyle; ascender: number; descender: number; lastWordToBeContinued: boolean; words: string[]; constructor(text: string); static fromDesc(desc: TextRunDesc): TextRun; setText(text: string): TextRun; /** * Breaks up the TextRun into an array of `Word`s. * @param context * @param carryOver * @param collect A callback to capture the results. `toBeContinued` is to be combined with the * first word on the next run. */ breakIntoGraphicsWords(context: Context, carryOver: Word | null, collect: (words: Word[], toBeContinued: Word | null) => void): void; draw(context: Context, left: number, top: number): number; }