/** * Simple project-scoped logger utilities. * - Exports `CNPLogger` (default) and `ProxyLogger` for proxy-specific logs. * - Non-error levels are silenced when the logger is configured for production. */ /** * Lightweight logger class used across the project. * - When constructed with `debug: true`, logs are enabled (non-production mode). * - `enableDebugging` can toggle logging at runtime. * - `info`, `warn`, `debug` respect the production flag; `error` always logs. */ declare class DebugLogger { private isProduction; private timestamp; private jumpLine; private context; /** * Create a new Logger instance bound to a context label. * @param debug When true, enables console output for non-error levels * @param context A short label to include with each log message */ constructor(debug: boolean, context: string); /** * Toggle debugging (non-production) mode at runtime. * @param enable `true` to enable debug logs; `false` to silence them */ enableDebugging(enable: boolean): void; setTimestamp(enabled: boolean): void; setJumpLine(enabled: boolean): void; private getTimestamp; private format; /** * Log an informational message when debugging is enabled. */ info(message: string, ...optionalParams: unknown[]): void; /** * Log a warning message when debugging is enabled. */ warn(message: string, ...optionalParams: unknown[]): void; /** * Always log a warning message, even in production mode. * Use for validation / configuration issues that should never be silenced. */ alwaysWarn(message: string, ...optionalParams: unknown[]): void; /** * Always log an error message. */ error(message: string, ...optionalParams: unknown[]): void; /** * Log a debug message when debugging is enabled. */ debug(message: string, ...optionalParams: unknown[]): void; private getColor; } /** * Default LOGGER FOR PACKAGE!!!. */ declare const _Logger: DebugLogger; export { _Logger as Logger, DebugLogger };