/** * llms.txt 文件解析器 * * 解析格式示例: * - APP API company subscribe [Subscribe company](https://apifox.advai.net/apidoc/shared/3fe93a62-4f68-45ac-b263-e078e1928dfc/api-2404.md): * - Invoice > Info [Create Invoice Info](https://apifox.advai.net/apidoc/shared/3fe93a62-4f68-45ac-b263-e078e1928dfc/api-2406.md): v2.28 */ /** * 解析后的接口信息 */ export interface ParsedInterface { /** 接口 ID(从 URL 中提取) */ id: string; /** 接口名称(从 Markdown 链接文本中提取) */ name: string; /** 目录路径(如 "Invoice > Info" 或 "APP API company subscribe") */ folderPath: string; /** 接口的 Markdown 文档 URL */ docUrl: string; /** 版本号(如果有,如 "v2.28") */ version?: string; } /** * 解析 llms.txt 文件内容 * * @param content llms.txt 文件内容 * @returns 解析后的接口列表 */ export declare function parseLlmsContent(content: string): ParsedInterface[]; /** * 计算 llms.txt 内容的 Hash(16 位) */ export declare function calculateLlmsHash(content: string): string; /** * 从 llms.txt URL 获取并解析接口列表 * * @param llmsUrl llms.txt 文件的 URL * @returns 解析后的接口列表 */ export declare function fetchAndParseLlms(llmsUrl: string): Promise; /** * 从 llms.txt 获取接口列表和 Hash * 这是 fetchAndParseLlms 的扩展版本,同时返回 Hash */ export declare function fetchAndParseLlmsWithHash(llmsUrl: string): Promise<{ interfaces: ParsedInterface[]; contentHash: string; }>; //# sourceMappingURL=llms.d.ts.map