import * as react_jsx_runtime from 'react/jsx-runtime'; interface ImportMapDevtoolsProps { buttonPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right"; buttonText?: string; className?: string; buttonVariant?: "solid" | "outline" | "minimal" | "glass"; } declare function ImportMapDevtools({ buttonPosition, buttonText, className, buttonVariant, }: ImportMapDevtoolsProps): react_jsx_runtime.JSX.Element; interface ImportMapModule { moduleName: string; originalUrl: string; overrideUrl: string | null; } declare class ImportMapService { private loaderReady; constructor(); private checkLoaderStatus; /** * Get the current import map from the DOM */ getBaseImportMap(): Record; /** * Get original URLs from localStorage */ getOriginalUrls(): Record; /** * Get all overrides from local storage */ getOverrides(): Record; /** * Get the effective import map (base map + overrides) */ getEffectiveImportMap(): Record; /** * Initialize and apply any existing overrides * This should be called when the application starts */ applyOverridesOnInit(): void; /** * Get a list of all modules with their original and override URLs */ getAllModules(): ImportMapModule[]; /** * Check if a module is currently overridden */ isOverridden(moduleName: string): boolean; /** * Override a module with a new URL */ override(moduleName: string, url: string): void; /** * Remove an override for a module */ removeOverride(moduleName: string): void; /** * Reset all overrides */ resetAll(): void; /** * Merge all import maps in the document */ private mergeImportMaps; /** * Apply current overrides to any import maps in the DOM * * This is necessary for browsers to actually use the overridden modules * when they are imported. This function modifies the import map in the DOM * to include the overrides. */ applyOverridesToImportMap(): void; /** * Dispatch a custom event when overrides change */ private dispatchChangeEvent; } declare const importMapService: ImportMapService; declare function useImportMap(): { modules: ImportMapModule[]; isLoading: boolean; overrideModule: (moduleName: string, url: string) => void; removeOverride: (moduleName: string) => void; resetAllOverrides: () => void; isOverridden: (moduleName: string) => boolean; refreshModules: () => void; }; export { ImportMapDevtools, ImportMapModule, ImportMapService, importMapService, useImportMap };