/** * Dynamic Widget Loader - Enables automatic updates without npm install * Loads widget dynamically from CDN with smart caching */ interface WidgetVersion { version: string; timestamp: string; scriptUrl: string; } export declare class DynamicWidgetLoader { private static CDN_BASE; private static CACHE_KEY; private static ACTIVE_VERSION_KEY; /** * Get latest version from npm registry */ static getLatestVersion(): Promise; /** * Load widget from CDN (using UMD format for better compatibility) */ static loadFromCDN(version: string): Promise; /** * Auto-update to new version */ static updateToVersion(newVersion: string): Promise; /** * Get cached version info */ static getCachedVersion(): WidgetVersion | null; /** * Get currently active version */ static getActiveVersion(): string | null; /** * Clear cache (for debugging) */ static clearCache(): void; } export {};