/** * AI Provider Logger * * Structured JSON logging with request ID support. */ import type { LogLevel } from './types.js'; export declare class Logger { private component; private static globalRequestId?; private static logLevel; constructor(component: string); /** * Set global request ID for correlation */ static setRequestId(requestId: string): void; /** * Clear global request ID */ static clearRequestId(): void; /** * Get current request ID */ static getRequestId(): string | undefined; /** * Set minimum log level */ static setLogLevel(level: LogLevel): void; /** * Check if a log level should be output */ private shouldLog; /** * Log debug message */ debug(message: string, context?: Record): void; /** * Log info message */ info(message: string, context?: Record): void; /** * Log warning message */ warn(message: string, context?: Record): void; /** * Log error message */ error(message: string, context?: Record): void; /** * Log error with Error object */ errorWithException(message: string, error: Error, context?: Record): void; /** * Create a child logger with additional context */ child(subComponent: string): Logger; /** * Core logging method */ private log; /** * Sanitize context to prevent PII logging */ private sanitizeContext; } /** * Create a logger for a specific component */ export declare function createLogger(component: string): Logger; //# sourceMappingURL=logger.d.ts.map