import { type CodeIndex } from './code-scanner'; export declare function generateGlobalArtifacts(sources: string[], depth: string): Promise; /** * v8.3.371: 业务实体符号判定——排除函数形态与元类型,保留 PascalCase 领域名词。 * 解决旧启发式把 generateGraphReport(函数)、ReportOptions(选项类型)当实体的信噪比问题。 */ export declare function isBusinessEntitySymbol(sym: string): boolean; /** * v8.3.371: 术语候选形态过滤——技术目录名/文件名/小写变量/全大写常量不配进术语表, * 只留 PascalCase 领域名词(IterationUnit、UnitAnalysis)。 * XxxOptions/XxxConfig 等选项接口是 CLI 实现细节,同元类型排除。 */ export declare function isGlossaryCandidate(term: string): boolean; /** 从目录向上回溯找工程根(含任一标记文件的最近祖先目录),最多 6 层 */ export declare function findProjectMarkerRoot(dir: string): Promise; /** package.json → { language, framework } */ export declare function detectFromPackage(pkgRoot: string): Promise<{ language: string; framework?: string; }>; /** 扩展名统计兜底(无标记文件时),返回 Top 3 语言(含文件数) */ export declare function detectByExtensions(absDir: string): Promise; export declare function detectTechStack(sources: string[]): Promise; /** * AI 接力剧本(v8.3.369):占位清单从实盘文档动态派生(剧本与现实一致), * 附素材指引 + 回填契约,宿主 AI 按剧本把 `_AI 填写` 占位系统性填满。 */ export declare function buildDocsPlaybook(index: CodeIndex | null, _sources: string[], now: string): Promise; /** --prompt 接力 Prompt:引导宿主 AI 读剧本填占位(v8.3.369) */ export declare function buildGlobalDocsPrompt(): string; /** 标题定位替换:heading 标题下的内容替换为 body(到下一个同级/上级标题前),标题未命中返回 null */ export declare function mergeSectionIntoText(text: string, heading: string, body: string): string | null; /** YAML description 回填:按 "METHOD path" 或 "path" 匹配,返回替换后文本与未匹配键 */ export declare function fillYamlDescriptions(text: string, descMap: Record): { text: string; filled: number; unmatched: string[]; }; /** * 语义回填(v8.3.369):接收宿主 AI 的 JSON 内容,按「标题定位」合并进骨架文档。 * 返回 { filled, total, missing },missing 供宿主 AI 修正后重发。 */ export declare function applySemanticContent(content: string): Promise<{ filled: number; total: number; missing: string[]; }>; //# sourceMappingURL=global-artifacts.d.ts.map