import type { KitiumError } from "@kitiumai/error"; import { type RequestContext } from "./context-manager.js"; /** * Enhanced logger with context threading */ export type ContextualLogger = { info: (message: string, metadata?: Record) => void; warn: (message: string, metadata?: Record) => void; error: (message: string, error?: Error | KitiumError, metadata?: Record) => void; debug: (message: string, metadata?: Record) => void; getContext: () => RequestContext | undefined; }; /** * Logger Factory with context threading * Injects correlation ID and request context into all log entries */ export declare class LoggerFactory { private static readonly baseLogger; /** * Create a contextual logger with correlation ID threading */ static createLogger(component: string): ContextualLogger; /** * Build metadata with context threading */ private static buildContextMetadata; /** * Create a context and run operation with logging */ static runWithContext(component: string, operation: (context: RequestContext) => Promise, contextOverrides?: Partial): Promise; } //# sourceMappingURL=logger-factory.d.ts.map