/** * Shared logging utilities for installer * Provides file logging using Winston and ANSI color helpers * * Console output (error, success, info, warn, raw, newline) has been migrated * to @clack/prompts. This module retains: * - File-only debug logging via Winston * - Silent mode flag (used by install/asciiArt to guard output) * - ANSI color helper functions * - Text wrapping utility */ export declare const LOG_FILE = "/tmp/nori.log"; /** * Enable or disable silent mode * When silent mode is enabled, callers should suppress visible output. * Clack `log.*` methods do not respect this flag automatically — callers * must check `isSilentMode()` before emitting output. * * @param args - Configuration arguments * @param args.silent - Whether to enable silent mode */ export declare const setSilentMode: (args: { silent: boolean; }) => void; /** * Check if silent mode is enabled * * @returns Whether silent mode is currently enabled */ export declare const isSilentMode: () => boolean; /** * Log debug message to file only (no console output) * @param args - Configuration arguments * @param args.message - Debug message to log */ export declare const debug: (args: { message: string; }) => void; /** * Wrap text in green (for positive/new values) * @param args - Configuration arguments * @param args.text - Text to display * * @returns Text wrapped in green ANSI color codes */ export declare const green: (args: { text: string; }) => string; /** * Wrap text in red (for errors/negative values) * @param args - Configuration arguments * @param args.text - Text to display * * @returns Text wrapped in red ANSI color codes */ export declare const red: (args: { text: string; }) => string; /** * Wrap text in yellow (for warnings/caution) * @param args - Configuration arguments * @param args.text - Text to display * * @returns Text wrapped in yellow ANSI color codes */ export declare const yellow: (args: { text: string; }) => string; /** * Wrap text in bold (for emphasis) * @param args - Configuration arguments * @param args.text - Text to display * * @returns Text wrapped in bold ANSI color codes */ export declare const bold: (args: { text: string; }) => string; /** * Print text in bright cyan (for numbers/indices) * @param args - Configuration arguments * @param args.text - Text to display * * @returns Text wrapped in bright cyan ANSI color codes */ export declare const brightCyan: (args: { text: string; }) => string; /** * Print text in bold white (for option names) * @param args - Configuration arguments * @param args.text - Text to display * * @returns Text wrapped in bold white ANSI color codes */ export declare const boldWhite: (args: { text: string; }) => string; /** * Print text in gray (for descriptions) * @param args - Configuration arguments * @param args.text - Text to display * * @returns Text wrapped in gray ANSI color codes */ export declare const gray: (args: { text: string; }) => string; /** * Wrap text to fit terminal width * @param args - Configuration arguments * @param args.text - Text to wrap * @param args.maxWidth - Maximum width (defaults to terminal width or 80) * * @returns Wrapped text with newlines */ export declare const wrapText: (args: { text: string; maxWidth?: number | null; }) => string; //# sourceMappingURL=logger.d.ts.map