export declare const LOGGING_CONFIG: { JSON_MODE: boolean; VERBOSE_MODE: boolean; }; export declare const setJsonMode: (value: boolean) => void; export declare const setVerboseMode: (value: boolean) => void; /** * This Logger should be unified with `core/src/logger.ts`. The main difference * is that the CLI logger has internal handling on JSON/VERBOSE modes, but * does not implement per-module logging and debug levels. * * There are four modes of operation: * - Regular (both JSON and VERBOSE modes are off) * - JSON mode (JSON mode is on, VERBOSE mode is off) * - verbose mode (JSON mode is off, VERBOSE mode is on) * - verbose JSON mode (JSON and VERBOSE modes are on) * * Generally, we want to hide debug logs unless verbose mode is on, * and during JSON mode, we want to ensure no logs end up in stdout, * because we assume the user might be piping the output to a JSON parser. * However, during verbose JSON mode, we want to keep debug information * without breaking the JSON output, so we redirect all logs to stderr. */ declare class Logger { constructor(); shouldLogToStderr: () => boolean; shouldSkipDebugLogs: () => boolean; private logPlain; private logDebug; private logWarn; private logError; log: (...args: any[]) => void; info: (...args: any[]) => void; success: (...args: any[]) => void; debug: (...args: any[]) => void; warn: (...args: any[]) => void; error: (...args: any[]) => void; showBox: (color: "yellow" | "green" | "white", ...lines: (string | undefined)[]) => void; } export declare const logger: Logger; export {}; //# sourceMappingURL=log.d.ts.map