/** * [WHO]: Text * [FROM]: Depends on ../utils.js * [TO]: Consumed by core/lib/tui/src/index.ts * [HERE]: core/lib/tui/src/components/text.ts - */ import type { Component } from "../tui.js"; /** * Text component - displays multi-line text with word wrapping */ export declare class Text implements Component { private text; private paddingX; private paddingY; private customBgFn?; private cachedText?; private cachedWidth?; private cachedLines?; constructor(text?: string, paddingX?: number, paddingY?: number, customBgFn?: (text: string) => string); setText(text: string): void; setCustomBgFn(customBgFn?: (text: string) => string): void; invalidate(): void; render(width: number): string[]; }