/**
 * Main Path Integration Contract — 类型定义
 */
export type IntegrationStatus = "integrated" | "implemented_not_integrated" | "experimental_isolated" | "planned_integration" | "dead_code_candidate";
export type EntryType = "cli" | "mcp_tool" | "workflow" | "adapter_prompt" | "frontend_route" | "backend_route" | "job" | "consumer" | "cron" | "webhook" | "public_api" | "command";
export interface EntryPointTrace {
    entry_type: EntryType;
    entry_id: string;
    call_chain: string[];
    trigger_example: string;
    evidence_ref?: string;
}
export interface MainPathIntegrationContract {
    module_path: string;
    capability_id?: string;
    contract_id?: string;
    issue_id?: string;
    status: IntegrationStatus;
    production_imports: string[];
    entry_traces: EntryPointTrace[];
    observability_refs: string[];
    integration_tests: string[];
    allowed_isolation_reason?: string;
    owner: string;
}
export type RecommendedAction = "wire_to_main_path" | "add_entry_trace" | "add_integration_test" | "mark_experimental" | "retire_dead_code" | "allow";
export interface IntegrationFinding {
    severity: "hard_fail" | "warning" | "allow";
    module_path: string;
    reason: string;
    recommended_action: RecommendedAction;
}
export interface IntegrationAuditReport {
    orphan_modules: string[];
    registry_only_modules: string[];
    test_only_modules: string[];
    unreachable_capabilities: string[];
    missing_observability: string[];
    required_entry_traces: EntryPointTrace[];
    findings: IntegrationFinding[];
}
export type CapabilityKind = "contract" | "guard" | "verifier" | "workflow" | "knowledge_rule" | "cli_command" | "adapter_behavior" | "diagnostic_code" | "governance_report" | "business_service" | "other";
export interface MainPathGovernanceFinding {
    severity: "hard_fail" | "warning";
    rule: string;
    module_path?: string;
    message: string;
}
export interface DeliveryAnswers {
    new_modules: string[];
    called_by: string[];
    user_trigger: string;
    failure_exposure: string;
    integration_test: string;
    test_only_files: string[];
    registered_not_executed: string[];
    non_integrated_statuses: IntegrationStatus[];
}
/** 作用域检测的最小配置（避免循环依赖） */
export interface ScanConfig {
    repos?: Array<{
        name: string;
        path: string;
        scope?: string[];
        lang?: string;
    }>;
    scope?: {
        backend?: string[];
        frontend?: string[];
    };
    _projectPath?: string;
}
/** 超越基本导入的实际使用证据 */
export interface CallEvidence {
    importer: string;
    patterns: string[];
}
/** 导入者分类结果 */
export interface ImporterScanResult {
    production_imports: string[];
    production_calls: CallEvidence[];
    test_imports: string[];
    barrel_exports: string[];
    registry_declarations: string[];
    import_only: string[];
}
//# sourceMappingURL=types.d.ts.map