/** * Tree-shaking optimization utilities * Helps eliminate unused code and optimize bundle sizes */ export declare const deadCodeElimination: { createPureFunction: any>(fn: T) => T; isDevelopment: boolean; isProduction: boolean; isTest: boolean; createFeatureFlags: (customFlags?: Record) => { enableAnalytics: boolean; enableDebugTools: boolean; enablePerformanceMonitoring: boolean; }; }; export declare const createConditionalImports: (imports: Record Promise>) => Record Promise>; export declare const utils: { createDebounce: (delay: number) => unknown>(func: T) => T; memoize: any>(fn: T) => T; isDeepEqual: (a: any, b: any) => boolean; createThrottle: (delay: number) => unknown>(func: T) => T; }; export declare const createSelectiveExports: (modules: Record>) => Record Promise>>; export declare const bundleAnalysis: { getModuleSize: (moduleName: string) => Promise; usageTracker: Set; trackUsage: (moduleName: string) => void; getUsageReport: () => string[]; estimateImpact: (moduleNames: string[]) => Promise<{ total: number; modules: Record; }>; }; export declare const cssOptimization: { inlineCriticalCSS: (css: string) => void; loadAsyncCSS: (href: string) => void; removeUnusedCSS: (selectors: string[]) => { used: string[]; unused: string[]; } | undefined; }; export declare const createTreeShakingConfig: (options?: { features?: Record; criticalCSS?: string; enableUsageTracking?: boolean; }) => { features: { enableAnalytics: boolean; enableDebugTools: boolean; enablePerformanceMonitoring: boolean; }; initialize: () => void; cleanup: () => void; getReport: () => { usage: string[]; features: { enableAnalytics: boolean; enableDebugTools: boolean; enablePerformanceMonitoring: boolean; }; }; }; declare const _default: { deadCodeElimination: { createPureFunction: any>(fn: T) => T; isDevelopment: boolean; isProduction: boolean; isTest: boolean; createFeatureFlags: (customFlags?: Record) => { enableAnalytics: boolean; enableDebugTools: boolean; enablePerformanceMonitoring: boolean; }; }; createConditionalImports: (imports: Record Promise>) => Record Promise>; utils: { createDebounce: (delay: number) => unknown>(func: T) => T; memoize: any>(fn: T) => T; isDeepEqual: (a: any, b: any) => boolean; createThrottle: (delay: number) => unknown>(func: T) => T; }; createSelectiveExports: (modules: Record>) => Record Promise>>; bundleAnalysis: { getModuleSize: (moduleName: string) => Promise; usageTracker: Set; trackUsage: (moduleName: string) => void; getUsageReport: () => string[]; estimateImpact: (moduleNames: string[]) => Promise<{ total: number; modules: Record; }>; }; cssOptimization: { inlineCriticalCSS: (css: string) => void; loadAsyncCSS: (href: string) => void; removeUnusedCSS: (selectors: string[]) => { used: string[]; unused: string[]; } | undefined; }; createTreeShakingConfig: (options?: { features?: Record; criticalCSS?: string; enableUsageTracking?: boolean; }) => { features: { enableAnalytics: boolean; enableDebugTools: boolean; enablePerformanceMonitoring: boolean; }; initialize: () => void; cleanup: () => void; getReport: () => { usage: string[]; features: { enableAnalytics: boolean; enableDebugTools: boolean; enablePerformanceMonitoring: boolean; }; }; }; }; export default _default; //# sourceMappingURL=treeShaking.d.ts.map