UNPKG

dadeumi

Version:

Dadeumi - An AI-powered literary translation workflow inspired by the Korean method of iterative textile refinement

53 lines (52 loc) 1.26 kB
/** * Logger utility for consistent output formatting */ export declare class Logger { private verbose; private spinner; constructor(verbose?: boolean); /** * Log a message if verbose mode is enabled */ log(message: string): void; /** * Log a section header */ logHeader(title: string): void; /** * Log an info message with blue color */ info(message: string): void; /** * Log a success message with green color */ success(message: string): void; /** * Log a warning message with yellow color */ warn(message: string): void; /** * Log an error message with red color */ error(message: string): void; /** * Start a spinner with a message */ startSpinner(message: string): void; /** * Stop the spinner with a success message */ succeedSpinner(message: string): void; /** * Stop the spinner with a warning message */ warnSpinner(message: string): void; /** * Stop the spinner with an error message */ failSpinner(message: string): void; /** * Log data metrics in a formatted way */ logMetrics(label: string, metrics: Record<string, any>): void; }