/** * 组件信息查询 * @作者 li peng * @创建时间 2025-12-20 * @描述 实现 UI 组件信息的查询功能 */ import type { UIComponentDoc } from '../types/index.js'; /** * 规范化组件名称 * 支持带或不带 em- 前缀的查询 * @param name 组件名称 * @returns 规范化后的名称数组(用于查找) */ export declare function normalizeComponentName(name: string): string[]; /** * 获取组件信息 * @param components 组件映射 * @param name 组件名称 * @returns 组件信息或 null */ export declare function getComponentInfo(components: Map, name: string): UIComponentDoc | null; /** * 查找相似的组件名称 * @param components 组件映射 * @param name 查询的名称 * @param limit 返回数量限制 * @returns 相似组件名称数组 */ export declare function findSimilarComponents(components: Map, name: string, limit?: number): string[]; /** * 格式化组件信息为文本 * @param doc 组件文档 * @returns 格式化的文本 */ export declare function formatComponentInfo(doc: UIComponentDoc): string; /** * 获取所有组件列表 * @param components 组件映射 * @returns 组件列表 */ export declare function getAllComponents(components: Map): Array<{ name: string; title: string; }>; //# sourceMappingURL=components.d.ts.map