/**
 * 问题五十: Existing System Analysis / Gap Analysis — 现有系统分析与差距分析。
 *
 * 强制执行:
 * - existing_system + new_requirement 必须先做 ExistingSystemAnalysis + RequirementGapAnalysis
 */
import type { ProjectContextDetection, ProjectContextType, ExistingSystemAnalysisContract, RequirementGapAnalysis, EvidenceBackedFact, ExistingSystemDevelopmentReview } from "./extension_platform_contracts.js";
export interface AnalysisGateResult {
    allowed: boolean;
    reason: string;
    missing_analysis: string[];
}
/**
 * 检测项目上下文类型。
 */
export declare function detectProjectContext(hasExistingCode: boolean, hasPackageJson: boolean, hasSrcDir: boolean, userOverride?: ProjectContextType): ProjectContextDetection;
/**
 * 创建现有系统分析契约。
 */
export declare function createExistingSystemAnalysis(projectType: ProjectContextType, overrides?: Partial<ExistingSystemAnalysisContract>): ExistingSystemAnalysisContract;
/**
 * 创建差距分析。
 */
export declare function createRequirementGapAnalysis(overrides?: Partial<RequirementGapAnalysis>): RequirementGapAnalysis;
/**
 * 分析前置检查 — 现有系统 + 新需求必须先做分析。
 */
export declare function checkAnalysisGate(context: ProjectContextDetection, hasAnalysis: boolean, hasGapAnalysis: boolean): AnalysisGateResult;
/**
 * 创建证据支撑事实。
 */
export declare function createEvidenceBackedFact(claim: string, sourceType: EvidenceBackedFact["source_type"], confidence: EvidenceBackedFact["confidence"]): EvidenceBackedFact;
/**
 * 审查现有系统开发产出。
 */
export declare function reviewExistingSystemDevelopment(analysis: ExistingSystemAnalysisContract, gapAnalysis: RequirementGapAnalysis): ExistingSystemDevelopmentReview;
//# sourceMappingURL=existing_system_analysis.d.ts.map