/** * Theme Loader with Build-Time Registry * * Loads themes from build-time registry for ultra-fast performance (zero I/O) */ import type { ThemeConfig } from '../../types/theme'; /** * No caching needed - registry provides instant access * Build-time registry eliminates all runtime I/O operations */ /** * Get all available themes from build-time registry (ultra-fast, zero I/O) */ export declare function getThemes(): ThemeConfig[]; /** * Load a specific theme configuration from registry (ultra-fast, zero I/O) */ export declare function loadThemeConfig(themeName: string): ThemeConfig | null; /** * Load theme with all its dependencies and overrides (synchronous, zero I/O) */ export declare function loadThemeWithDependencies(themeName: string): ThemeConfig | null; /** * Apply a theme with preloading and caching (synchronous, zero I/O) */ export declare function applyThemeWithOptimizations(themeName: string): boolean; /** * Apply theme styles to the document (exported for ThemeProvider) * * This applies the base shadcn CSS variables directly to :root * to ensure theme colors work even if CSS file bundling fails. * Also sets up observer for dark mode changes. */ export declare function applyThemeStyles(theme: ThemeConfig): void; /** * Cleanup dark mode observer (call when unmounting) */ export declare function cleanupThemeObserver(): void; /** * Get theme loading statistics (registry-based, zero overhead) */ export declare function getThemeLoadingStats(): { totalThemes: number; loadMethod: string; performanceNotes: string; }; /** * Clear theme override cache (useful for development) * Note: Main theme registry is immutable and requires no cache clearing */ export declare function clearThemeCache(): void; /** * Validate theme configuration */ export declare function validateThemeConfig(theme: ThemeConfig): { valid: boolean; errors: string[]; }; //# sourceMappingURL=theme-loader.d.ts.map