/** * Utility Types */ export { ERROR_CODES, getErrorDocUrl, getErrorCategory } from '../utils/error-codes'; export type { ErrorCode } from '../utils/error-codes'; /** * Log levels */ export declare enum LogLevel { DEBUG = "debug", INFO = "info", WARN = "warn", ERROR = "error" } /** * Color codes (TTY-aware) */ export type ColorName = 'red' | 'green' | 'yellow' | 'blue' | 'cyan' | 'bold' | 'cyanBold' | 'reset'; /** * Terminal capabilities */ export interface TerminalInfo { isTTY: boolean; supportsColor: boolean; noColorEnv: boolean; } /** * Helper result types */ export type Result = { ok: true; value: T; } | { ok: false; error: E; }; /** * Generic operation result for success/failure patterns * Use this instead of defining new *Result interfaces */ export interface OperationResult { success: boolean; message?: string; error?: string; data?: T; } /** * Generic component/tool status * Used for CLI tools, services, etc. */ export interface ComponentStatus { installed: boolean; path?: string; version?: string; } /** * Generic validation result * Standardized on 'valid' property name */ export interface ValidationResult { valid: boolean; errors?: string[]; } /** * Semantic color names for UI elements */ export type SemanticColor = 'success' | 'error' | 'warning' | 'info' | 'dim' | 'primary' | 'secondary' | 'command' | 'path'; /** * Box style options for boxen wrapper */ export interface BoxOptions { title?: string; titleAlignment?: 'left' | 'center' | 'right'; padding?: number; margin?: number; borderColor?: string; borderStyle?: 'single' | 'double' | 'round' | 'bold' | 'classic'; } /** * Table style options for cli-table3 wrapper */ export interface TableOptions { head?: string[]; colWidths?: number[]; wordWrap?: boolean; style?: 'unicode' | 'ascii'; } /** * Spinner options for ora wrapper */ export interface SpinnerOptions { text: string; color?: string; prefixText?: string; } /** * Spinner control interface */ export interface SpinnerController { succeed: (msg?: string) => void; fail: (msg?: string) => void; warn: (msg?: string) => void; info: (msg?: string) => void; update: (text: string) => void; stop: () => void; } //# sourceMappingURL=utils.d.ts.map