/** * UI utility functions for terminal handling */ /** * Check if stdout is a TTY (interactive terminal) */ export declare const isTTY: boolean; /** * Get terminal width, with fallback for non-TTY environments */ export declare function getTerminalWidth(): number; /** * Render different output based on TTY availability * @param ttyOutput Output for interactive terminals * @param plainOutput Output for non-TTY (CI/CD) environments */ export declare function renderConditional(ttyOutput: string, plainOutput: string): string; /** * Center text within a given width */ export declare function centerText(text: string, width: number): string; /** * Pad text to a specific width (accounting for ANSI codes) */ export declare function padText(text: string, width: number, align?: 'left' | 'right' | 'center'): string; /** * Strip ANSI escape codes from string (for length calculations) */ export declare function stripAnsi(str: string): string; /** * Truncate text to fit within a width, adding ellipsis if needed */ export declare function truncate(text: string, maxWidth: number): string; /** * Format duration in a human-readable way */ export declare function formatDuration(ms: number): string; /** * Format a number with commas for readability */ export declare function formatNumber(num: number): string; //# sourceMappingURL=utils.d.ts.map