/**
 * Get terminal columns with robust fallback handling
 * Handles edge cases: undefined stdout, non-TTY, invalid values
 */
export declare function getTerminalColumns(defaultWidth?: number): number;
/**
 * Check if we're in ultra-narrow terminal mode
 */
export declare function isUltraNarrowMode(): boolean;
export type Colorize = (value: string) => string;
export interface PanelOptions {
    title?: string;
    icon?: string;
    accentColor?: Colorize;
    borderColor?: Colorize;
    width?: number;
}
export declare function getContentWidth(): number;
export declare function wrapParagraph(text: string, width: number): string[];
export declare function wrapPreformatted(text: string, width: number): string[];
export declare function normalizePanelWidth(width?: number): number;
export declare function renderPanel(lines: string[], options?: PanelOptions): string;
export declare function measure(text: string): number;
export declare function stripAnsi(text: string): string;
export declare function padLine(text: string, width: number): string;
export declare function truncate(text: string, width: number): string;
//# sourceMappingURL=layout.d.ts.map