import type { Component } from "../tui"; import { type ViewportAnchorSpan } from "../utils"; /** * Text component - displays multi-line text with word wrapping */ export declare class Text implements Component { #private; constructor(text?: string, paddingX?: number, paddingY?: number, customBgFn?: (text: string) => string); getText(): string; setText(text: string): void; setCustomBgFn(customBgFn?: (text: string) => string): void; invalidate(): void; render(width: number): string[]; renderWithViewportAnchorSource(width: number, source: { id: string; }): { lines: string[]; anchors: Array<({ id: string; } & ViewportAnchorSpan) | null>; }; }