import { type ConfigEnv, type UserConfig } from 'vite'; import type { DevToVuePluginOptions, ResolvedDevComponentConfig } from './types.js'; /** 判断是否为 lib 模式构建 */ export declare function isLibBuild(env?: ConfigEnv): boolean; /** 转换为安全的输出目录名 */ export declare function toSafeOutDirName(componentName: string): string; /** 转换为合法的 UMD 全局变量名 */ export declare function toSafeUmdName(componentName: string): string; /** 校验是否为合法 JS 标识符 */ export declare function isValidJsIdentifier(name: string): boolean; /** 生成库模式的虚拟入口模块代码(智能处理导出) */ export declare function generateLibVirtualEntryCode(params: { rootDir: string; defaultEntryAbs: string; componentName: string; }): string; /** 生成虚拟入口模块路径(用于 lib.entry 配置) */ export declare function getLibVirtualEntryPath(componentName: string): string; /** 将生成的 CSS 文件重命名为与 Component 同名 */ export declare function normalizeLibCss(outDir: string, baseName: string): void; /** 解析当前的构建目标列表 */ export declare function resolveBuildTargets(params: { componentMap: Record; requestedRaw: string; defaultEntryAbs: string; }): string[]; /** 生成库模式的构建配置 */ export declare function generateLibBuildNextConfig(params: { rootDir: string; configDir?: string; picked: string; componentMap: Record; resolvedConfig: ResolvedDevComponentConfig; options: DevToVuePluginOptions; userConfig: UserConfig; }): { next: UserConfig; outDir: string; outBase: string; buildTargets: string[]; virtualEntryCode: string; resolvedEntryAbs: string; }; //# sourceMappingURL=libBuildUtils.d.ts.map