/** styled-text tokenizing, wrapping, and SVG `` layout. */ import type { MessageEntity } from "@yaebal/types"; import type { Palette } from "./theme.js"; /** a positioned, self-sizing chunk of content. */ export interface Block { w: number; h: number; render: (x: number, y: number) => string; } export interface Run { text: string; space: boolean; b?: boolean; i?: boolean; u?: boolean; st?: boolean; mono?: boolean; spoiler?: boolean; link?: boolean; } export declare function layoutText(text: string, entities: MessageEntity[], maxW: number, base: string, p: Palette): Block; /** plain (unstyled) word-wrap for system-message pills and webpage-card descriptions. */ export declare function wrapPlainText(text: string, maxChars: number): string[]; //# sourceMappingURL=text.d.ts.map