/**
 * Logger Provider - Implements dependency injection pattern for logging
 * This file provides centralized logger management without circular dependencies
 */
import type { Logger, LoggerConfig, LogLevel } from './types.js';
export declare class LoggerProvider {
    private static instance;
    private _logger;
    private _config;
    private _fallbackInitialized;
    private _realDependenciesLoaded;
    private _createPinoLogger;
    private _createConfig;
    private constructor();
    /**
     * Detect if running under Bun runtime
     * Bun's worker threads are incompatible with Pino's transport API
     */
    private static isBunRuntime;
    /**
     * Get the singleton logger provider instance
     */
    static getInstance(): LoggerProvider;
    /**
     * Initialize lazy-loaded dependencies to avoid circular imports
     */
    private ensureDependenciesLoaded;
    /**
     * Asynchronously load real Pino dependencies
     * Uses dynamic imports to avoid circular dependency issues
     */
    private loadRealDependencies;
    /**
     * Create fallback logger when dependencies fail to load
     */
    private createFallbackLogger;
    /**
     * Create default configuration based on environment
     */
    private createDefaultConfig;
    /**
     * Initialize the logger with configuration
     */
    initializeLogger(config?: Partial<LoggerConfig>): Logger;
    /**
     * Get the current logger instance
     */
    getLogger(): Logger;
    /**
     * Get the current configuration
     */
    getLoggerConfig(): LoggerConfig | null;
    /**
     * Create a child logger with additional context
     */
    createChildLogger(bindings: Record<string, unknown>): Logger;
    /**
     * Format error for structured logging
     */
    private formatErrorForLogging;
    /**
     * Check if a log level is enabled
     */
    isLevelEnabled(level: LogLevel): boolean;
    /**
     * Reset the logger instance (useful for testing)
     */
    reset(): void;
    /**
     * Flush any pending logs
     */
    flush(): Promise<void>;
    /**
     * Flush logs synchronously (for signal handlers)
     */
    flushSync(): void;
    /**
     * End the logger and close all streams
     */
    end(): Promise<void>;
}
export declare const loggerProvider: LoggerProvider;
//# sourceMappingURL=logger-provider.d.ts.map