export interface FeatureLocation { source: 'doc' | 'requirements' | 'code' | 'global'; path: string; title?: string; content: string; relevance: number; lineStart?: number; lineEnd?: number; } export interface FeatureContext { featureName: string; docLocations: FeatureLocation[]; reqLocations: FeatureLocation[]; codeLocations: FeatureLocation[]; globalLocations: FeatureLocation[]; summary: string; } /** * 在指定文档中定位功能章节 */ export declare function locateFeatureInDoc(docPath: string, featureName: string): Promise; /** * 在需求文档中定位功能 */ export declare function locateFeatureInRequirements(iterDir: string, featureName: string): Promise; /** * 在代码中定位相关文件(基于 structured-data.json 或源码扫描) */ export declare function locateFeatureInCode(projectRoot: string, featureName: string): Promise; /** * 在全局分析产出中定位相关内容 */ export declare function locateFeatureInGlobal(projectRoot: string, featureName: string): Promise; /** * 构建功能单元的完整上下文 */ export declare function buildFeatureContext(projectRoot: string, iterDir: string, featureName: string, docName?: string): Promise; /** * 生成功能分析用的 Prompt 上下文注入文本 */ export declare function buildFeatureContextPrompt(ctx: FeatureContext): string; //# sourceMappingURL=semantic-locator.d.ts.map