export interface WrapOptions { /** Columns available to the first row. */ readonly width: number; /** Prefix prepended to row 1. Its width is subtracted from `width`. */ readonly firstPrefix?: string | undefined; /** Prefix prepended to rows 2..n. Its width is subtracted from `width`. */ readonly nextPrefix?: string | undefined; } /** * Wrap a single logical line at word boundaries, falling back to a hard break * for tokens wider than the budget. ANSI escapes carry no width and are never * split; the active style is re-emitted at the start of each continuation row * so a wrapped styled run stays styled. */ export declare function wrapAnsiLine(text: string, budget: number): string[]; /** Wrap a paragraph (embedded newlines respected) with per-row prefixes. */ export declare function wrapWithPrefixes(text: string, options: WrapOptions): string[]; /** Re-wrap already-rendered ANSI rows that exceed the budget. */ export declare function reflowRows(rows: readonly string[], budget: number): string[];