import { TextBody, TextAlignment, VerticalAlignment } from '../types/text'; export interface LayoutLine { runs: LayoutRun[]; width: number; height: number; ascender: number; y: number; } export interface LayoutRun { text: string; fontFamily: string; fontSize: number; bold: boolean; italic: boolean; color: { r: number; g: number; b: number; a: number; }; underline: boolean; strikethrough: boolean; width: number; x: number; } export interface LayoutParagraph { lines: LayoutLine[]; alignment: TextAlignment; spaceBefore: number; spaceAfter: number; } export interface TextLayoutResult { paragraphs: LayoutParagraph[]; totalHeight: number; verticalAlign: VerticalAlignment; } /** * Lay out text within a bounding box. * Performs line breaking and computes positions for each run. */ export declare function layoutText(textBody: TextBody, boxWidthEmu: number, boxHeightEmu: number, fontDirs?: string[], fontMap?: Record): TextLayoutResult; //# sourceMappingURL=text-layout.d.ts.map