import { ServiceContainer } from "../services/ServiceContainer.js";
export declare class NpmPackageLoader {
    private static registryPatchedTohandleErrors;
    private static packageHacks;
    private _packageSource;
    private _dependecies;
    constructor(packageSource?: string);
    static patchCustomElementsRegistryToHandleErrors(): void;
    loadNpmPackage(pkg: string, serviceContainer?: ServiceContainer, paletteTree?: any, loadAllImports?: boolean, reportState?: (state: string) => void): Promise<{
        html: string;
        style: string;
    }>;
    loadDependency(dependency: string, version?: string, reportState?: (state: string) => void): Promise<void>;
    addToImportmap(baseUrl: string, packageJsonObj: {
        name?: string;
        module?: string;
        main?: string;
        unpkg?: string;
        exports?: Record<string, string>;
    }): Promise<void>;
}
