import type { Plugin } from "vite"; /** * A Vite plugin that optimizes lucide-react imports by converting * destructured imports to direct imports for better tree-shaking */ declare function createLucideReactImportOptimizer(): Plugin; /** * Transforms lucide-react imports from destructured to individual imports. * Exported so tests can pin the emitted import specifiers against the ids the * dep optimizer registers. */ export declare function transformLucideImports(sourceCode: string): { transformedCode: string; hasChanges: boolean; }; /** * The module id this plugin emits for a named lucide-react import. The `.js` * extension is load-bearing: the dep optimizer's include glob registers each * icon under its on-disk id (`…/icons/check.js`), and Vite's * `tryOptimizedResolve` matches optimized deps by EXACT id — an extensionless * import misses the optimized entry and is re-registered as a newly discovered * dependency, re-running the optimizer (the reload this plugin + config * combination exists to prevent). Exported so tests can assert the emitted ids * and the optimized ids stay identical. */ export declare function lucideIconModuleId(importName: string): string; export default createLucideReactImportOptimizer; //# sourceMappingURL=vite-plugin-optimize-lucide-imports.d.ts.map