/** * Document Manager 主入口 * @作者 li peng * @创建时间 2025-12-20 * @描述 文档管理器,提供文档加载、搜索和查询功能 */ import type { DocumentIndex, SearchOptions, SearchResult, UIComponentDoc, CodingStandardDoc, UtilDoc, ApiDoc, StandardType } from '../types/index.js'; /** * 文档管理器类 */ export declare class DocumentManager { private index; private initialized; constructor(); /** * 初始化文档管理器,加载所有文档 */ initialize(): Promise; /** * 搜索文档 */ searchDocs(query: string, options?: SearchOptions): SearchResult[]; /** * 搜索文档并格式化结果 */ searchDocsFormatted(query: string, options?: SearchOptions): string; /** * 获取组件信息 */ getComponentInfo(name: string): UIComponentDoc | null; /** * 获取组件信息并格式化 */ getComponentInfoFormatted(name: string): string; /** * 获取所有组件列表 */ getAllComponents(): Array<{ name: string; title: string; }>; /** * 获取 API 信息 */ getApiInfo(moduleName: string, methodName?: string): ApiDoc | null; /** * 获取 API 信息并格式化 */ getApiInfoFormatted(moduleName: string, methodName?: string): string; /** * 获取可用的 API 模块 */ getAvailableApiModules(): string[]; /** * 获取 Util 信息 */ getUtilInfo(category: string, methodName?: string): UtilDoc | null; /** * 获取 Util 信息并格式化 */ getUtilInfoFormatted(category: string, methodName?: string): string; /** * 获取可用的 Util 分类 */ getAvailableUtilCategories(): string[]; /** * 获取编码规范 */ getCodingStandard(type: StandardType, keyword?: string): CodingStandardDoc | CodingStandardDoc[] | null; /** * 获取编码规范并格式化 */ getCodingStandardFormatted(type: StandardType, keyword?: string): string; /** * 获取可用的规范类型 */ getAvailableStandardTypes(): string[]; /** * 获取文档索引(用于测试) */ getIndex(): DocumentIndex; /** * 检查是否已初始化 */ isInitialized(): boolean; } export declare const documentManager: DocumentManager; export * from './loader.js'; export * from './search.js'; export * from './components.js'; export * from './apis.js'; export * from './utils.js'; export * from './standards.js'; //# sourceMappingURL=index.d.ts.map