/**
 * Terminal layout utilities — visible-width-aware helpers for CLI rendering.
 */
import { sanitizeTerminalText } from "./theme.js";
export declare function visibleTerminalWidth(value: string): number;
/** Truncate visible text while preserving ANSI escape sequences. */
export declare function truncateLine(line: string, maxWidth: number): string;
export declare function padEndVisible(value: string, targetWidth: number): string;
export declare function padStartVisible(value: string, targetWidth: number): string;
/** Ensure an array of lines exactly matches a target count (truncate or pad). */
export declare function fitLines(lines: string[], count: number): string[];
/** Ensure an array of lines fits a target height (truncate or pad). */
export declare function fitHeight(lines: string[], height?: number): string[];
/** Wrap lines in a themed box panel. */
export declare function panel(title: string, lines: string[], width: number): string;
/** Render a section header. */
export declare function sectionHeader(title: string): string;
export { sanitizeTerminalText };
