/** * Simple console logger for the OpenRouter Kit library. * Allows conditional logging based on debug mode and adding prefixes. */ export declare class Logger { private debugMode; private readonly prefix; /** * Creates a logger instance. * @param options - Configuration object `{ debug?: boolean, prefix?: string }` or a boolean indicating debug state. * @param prefix - Optional prefix string (only used if `options` is boolean). */ constructor(options?: { debug?: boolean; prefix?: string; } | boolean, prefix?: string); /** * Enables or disables debug logging. * @param debug - `true` to enable, `false` to disable. */ setDebug(debug: boolean): void; /** Checks if debug mode is currently enabled. */ isDebugEnabled(): boolean; /** Logs a debug message (only if debug mode is enabled). */ debug(message: string | any, ...args: any[]): void; /** Logs an informational message (only if debug mode is enabled). */ log(message: string | any, ...args: any[]): void; /** Logs a warning message (only if debug mode is enabled). */ warn(message: string | any, ...args: any[]): void; /** Logs an error message (only if debug mode is enabled). */ error(message: string | any, ...args: any[]): void; /** * Creates a new logger instance inheriting the current debug state * but with an added prefix segment. * @param newPrefix - The additional prefix string. * @returns A new Logger instance. */ withPrefix(newPrefix: string): Logger; }