import { LogEntry, MonitoringConfig } from './interfaces'; /** * Enhanced structured logger with correlation ID tracking and contextual metadata */ export declare class StructuredLogger { private logger; private correlationTracking; private activeContexts; constructor(monitoringConfig: MonitoringConfig); /** * Set correlation ID for current execution context */ setCorrelationId(correlationId: string, context?: Record): void; /** * Get correlation ID from current context */ getCorrelationId(correlationId: string): Record | undefined; /** * Clear correlation ID context */ clearCorrelationId(correlationId: string): void; /** * Log with workflow context */ logWorkflow(level: 'debug' | 'info' | 'warn' | 'error', message: string, workflowId: string, metadata?: Record): void; /** * Log with expert context */ logExpert(level: 'debug' | 'info' | 'warn' | 'error', message: string, expertType: string, workflowId?: string, metadata?: Record): void; /** * Log with conversation context */ logConversation(level: 'debug' | 'info' | 'warn' | 'error', message: string, conversationId: string, metadata?: Record): void; /** * Log performance metrics */ logPerformance(message: string, duration: number, operation: string, metadata?: Record): void; /** * Log security events */ logSecurity(level: 'warn' | 'error', message: string, event: string, metadata?: Record): void; /** * Log API requests */ logRequest(method: string, path: string, statusCode: number, duration: number, correlationId?: string, metadata?: Record): void; /** * Log errors with stack trace */ logError(error: Error, message?: string, context?: Record): void; /** * Create log entry for export/analysis */ createLogEntry(level: 'debug' | 'info' | 'warn' | 'error' | 'fatal', message: string, metadata?: Record): LogEntry; /** * Start timer for operation tracking */ startTimer(operation: string, correlationId?: string): () => void; /** * Debug logging convenience method */ debug(message: string, metadata?: Record): void; /** * Info logging convenience method */ info(message: string, metadata?: Record): void; /** * Warn logging convenience method */ warn(message: string, metadata?: Record): void; /** * Error logging convenience method */ error(message: string, metadata?: Record): void; /** * Log with automatic context enrichment */ private log; /** * Create correlation format for winston */ private createCorrelationFormat; /** * Configure log rotation and cleanup */ configureRotation(options: { maxFiles?: number; maxSize?: string; datePattern?: string; }): void; /** * Get log statistics */ getStats(): Record; /** * Graceful shutdown */ shutdown(): Promise; } export declare const structuredLogger: StructuredLogger; //# sourceMappingURL=structuredLogger.d.ts.map