/**
 * Library Loader Service
 * Dynamically loads external JavaScript libraries with retry logic and fallback URLs
 *
 * Based on architectural enhancements from renaissance-tool-analyses.md
 * Supports both static and dynamic library loading
 */
import type { LibraryConfig, LibraryLoader, LoaderStats } from "./types.js";
/**
 * Implementation of LibraryLoader service
 */
export declare class LibraryLoaderImpl implements LibraryLoader {
    private loadedLibraries;
    private pendingLoads;
    private failedLibraries;
    private stats;
    /**
     * Load a JavaScript library
     */
    loadScript(library: LibraryConfig): Promise<void>;
    /**
     * Load a stylesheet
     */
    loadStylesheet(url: string, targetRoot?: Document | ShadowRoot): Promise<void>;
    /**
     * Check if a library is already loaded
     */
    isLoaded(libraryId: string): boolean;
    /**
     * Preload multiple libraries in parallel
     */
    preload(libraries: LibraryConfig[]): Promise<void>;
    /**
     * Unload a library (remove script tag)
     */
    unload(libraryId: string): void;
    /**
     * Get loader statistics
     */
    getStats(): LoaderStats;
    /**
     * Load script with retry logic
     */
    private _loadScriptWithRetry;
    /**
     * Load script from a specific URL
     */
    private _loadScriptFromUrl;
    /**
     * Sleep utility for retry delays
     */
    private _sleep;
}
/**
 * Singleton instance
 */
export declare const libraryLoader: LibraryLoaderImpl;
/**
 * Common library configurations
 * Based on industry best practices and platform analyses
 */
export declare const COMMON_LIBRARIES: Record<string, LibraryConfig>;
