/** * CLI output utilities * Provides consistent formatting for CLI output * Supports NO_COLOR (https://no-color.org/), --no-color flag, and TTY detection */ import { type Ora } from 'ora'; /** * Whether the output is a TTY (interactive terminal) */ export declare const isTTY: boolean; /** * Whether color output is disabled via NO_COLOR env or --no-color flag */ export declare const isColorDisabled: boolean; /** * Whether to use colors (TTY and not explicitly disabled) */ export declare const useColors: boolean; export declare const colors: { primary: import("chalk").ChalkInstance | ((s: string) => string); success: import("chalk").ChalkInstance | ((s: string) => string); warning: import("chalk").ChalkInstance | ((s: string) => string); error: import("chalk").ChalkInstance | ((s: string) => string); info: import("chalk").ChalkInstance | ((s: string) => string); dim: import("chalk").ChalkInstance | ((s: string) => string); bold: import("chalk").ChalkInstance | ((s: string) => string); }; /** * Print a success message */ export declare function success(message: string): void; /** * Print an error message */ export declare function error(message: string): void; /** * Print a warning message */ export declare function warning(message: string): void; /** * Print an info message */ export declare function info(message: string): void; /** * Print a primary colored message */ export declare function primary(message: string): void; /** * Print a dim/muted message */ export declare function dim(message: string): void; /** * Create a spinner (disabled when not a TTY) */ export declare function spinner(text: string): Ora; /** * Print a header/title */ export declare function header(text: string): void; /** * Print a table row */ export declare function tableRow(label: string, value: string, labelWidth?: number): void; /** * Print a list item */ export declare function listItem(text: string, indent?: number): void; /** * Print JSON output */ export declare function json(data: unknown): void; /** * Print a newline */ export declare function newline(): void; /** * Format a task status with color */ export declare function formatStatus(status: string): string; /** * Format a priority with color */ export declare function formatPriority(priority: string): string; /** * Format a date for display */ export declare function formatDate(date: string | Date): string; /** * Format a date as a granular relative time string (e.g. "5m ago", "2h ago") */ export declare function formatRelativeTime(dateStr: string): string; /** * Truncate text to a maximum length */ export declare function truncate(text: string, maxLength: number): string; /** * Format a duration in milliseconds to a human-readable string */ export declare function formatDuration(ms: number): string; /** * Print an error message with contextual recovery hints */ export declare function errorWithHint(message: string): void; /** * Get a recovery hint for an error message, if any */ export declare function getRecoveryHint(message: string): string | null; //# sourceMappingURL=output.d.ts.map