/** * Logger utility class for consistent logging throughout the application. * Provides different log levels with timestamp and optional file prefixes. * Logging is controlled via the DressipiProvider enableLogging prop. */ export declare class Log { /** * Singleton instance of the Log class */ private static instance; /** * Flag to determine if logging is enabled. */ private isLoggingEnabled; private shouldLogTokens; /** * Private constructor to enforce singleton pattern. * * @param isLoggingEnabled Whether logging is enabled or not. */ private constructor(); /** * Initializes the Log class as a singleton. * * @param {boolean} isLoggingEnabled Whether logging is enabled or not. * @returns {Log} Singleton instance of Log. */ static init(isLoggingEnabled?: boolean, logTokens?: boolean): Log; static get enabled(): boolean; /** * Formats the current timestamp in the required format [DD-MM-YYYY HH:MM:SS] * @returns {string} Formatted timestamp string */ private formatTimestamp; /** * Formats the message with timestamp and optional prefix * @param message The message to log * @param prefix Optional file or context prefix * @returns {string} Formatted message string */ private formatMessage; /** * Formats arguments for logging, handling JSON objects beautifully * @param args Arguments to format * @returns {unknown[]} Formatted arguments array */ private formatArgs; /** * Logs an info message using the instance configuration. * Private method that is not exposed publicly. Use the static method * Log.info instead. * * @param message Message to log * @param prefix Optional file or context prefix * @param args Additional arguments to log */ private logInfoMessage; /** * Logs an info message. * * @param message Message to log * @param prefix Optional file or context prefix * @param args Additional arguments to log */ static info(message: string, prefix?: string, ...args: unknown[]): void; /** * Logs a warning message using the instance configuration. * Private method that is not exposed publicly. Use the static method * Log.warn instead. * * @param message Message to log * @param prefix Optional file or context prefix * @param args Additional arguments to log */ private logWarningMessage; /** * Logs a warning message. * * @param message Message to log * @param prefix Optional file or context prefix * @param args Additional arguments to log */ static warn(message: string, prefix?: string, ...args: unknown[]): void; /** * Logs an error message using the instance configuration. * Private method that is not exposed publicly. Use the static method * Log.error instead. * * @param message Message to log * @param prefix Optional file or context prefix * @param args Additional arguments to log */ private logErrorMessage; /** * Logs an error message. * * @param message Message to log * @param prefix Optional file or context prefix * @param args Additional arguments to log */ static error(message: string, prefix?: string, ...args: unknown[]): void; }