/** * @file 文档模板配置加载器 * @description 加载文档类型配置与主题。 * * 主题来源优先级: * 1. 应用层显式传入的 templatesDir(通过 createDocgenTools / ToolContext.custom 传入, * 指向统一源 _shared/docs) * 2. 代码内置默认主题(DEFAULT_THEME,无需任何资源文件) * * 旧的 data/doc-templates 消费方数据目录已移除,不再保留对其的访问逻辑; * 应用层须通过 templatesDir 显式传入模板目录。 */ import type { DocTypeConfig, ThemeConfig } from './types.js'; /** * 代码内置默认主题。 * 当应用层未提供模板目录、或未指定主题、或主题文件缺失时回退到此, * 保证文档生成在任何环境下都能产出可用结果。 */ export declare const DEFAULT_THEME: ThemeConfig; /** 加载文档类型全局配置 */ export declare function loadDocConfig(docType: string, templatesDir?: string): DocTypeConfig; /** 加载主题配置 */ export declare function loadTheme(docType: string, themeName?: string, templatesDir?: string): ThemeConfig; /** 列出可用主题 */ export declare function listThemes(docType: string, templatesDir?: string): string[]; /** 清除缓存(用于热更新或测试) */ export declare function clearConfigCache(): void; //# sourceMappingURL=config-loader.d.ts.map