import type { TaskContext } from "../../types/task.js";
import type { TraceabilityChain } from "../../types/analysis.js";
export declare const DEFAULT_DESIGN_IMPLEMENTATION_TRACEABILITY_PATH = "docs/traceability/01-\u9700\u6C42\u539F\u578B\u8BBE\u8BA1\u5B9E\u73B0\u8FFD\u8E2A\u77E9\u9635.md";
export declare const DESIGN_IMPLEMENTATION_TRACEABILITY_TEMPLATE_PATH = "templates/artifacts/shared/\u9700\u6C42\u539F\u578B\u8BBE\u8BA1\u5B9E\u73B0\u8FFD\u8E2A\u77E9\u9635\u6A21\u7248.md";
export declare const DESIGN_IMPLEMENTATION_TRACEABILITY_RECOVERY_COMMAND = "soloforge audit-design-artifacts";
export declare const DESIGN_IMPLEMENTATION_TRACEABILITY_RECOVERY_GUIDANCE = "\u4F7F\u7528 templates/artifacts/shared/\u9700\u6C42\u539F\u578B\u8BBE\u8BA1\u5B9E\u73B0\u8FFD\u8E2A\u77E9\u9635\u6A21\u7248.md \u8865\u9F50 docs/traceability/01-\u9700\u6C42\u539F\u578B\u8BBE\u8BA1\u5B9E\u73B0\u8FFD\u8E2A\u77E9\u9635.md\uFF0C\u8BA9\u67B6\u6784\u3001\u8BE6\u7EC6\u8BBE\u8BA1\u3001\u5207\u7247\u8BA1\u5212\u7ED1\u5B9A REQ/PROTO/ARCH/DD/PHASE/SLICE/AC ID \u540E\u91CD\u65B0\u8FD0\u884C soloforge audit-design-artifacts";
export type DesignTraceabilityIdPrefix = "REQ" | "PROTO" | "ARCH" | "DD" | "PHASE" | "SLICE" | "AC";
export interface DesignTraceabilityItem {
    id: string;
    prefix: DesignTraceabilityIdPrefix;
    source_file: string;
    summary: string;
    linked_ids: string[];
}
export interface DesignTraceabilityFinding {
    code: string;
    severity: "hard_fail" | "advisory";
    message_zh: string;
    file?: string;
    item_id?: string;
    recovery_zh: string;
    recovery_command: string;
    template_path: string;
}
export interface DesignImplementationTraceabilityReport {
    passed: boolean;
    matrix_path: string;
    matrix_exists: boolean;
    items: DesignTraceabilityItem[];
    coverage: Record<DesignTraceabilityIdPrefix, number>;
    checked_files: string[];
    hard_fail_count: number;
    findings: DesignTraceabilityFinding[];
}
export interface TraceabilityBindingVerificationResult {
    passed: boolean;
    hard_fail_count: number;
    binding_ids: string[];
    findings: DesignTraceabilityFinding[];
}
export declare function extractTraceabilityIds(content: string): string[];
export declare function auditDesignImplementationTraceability(rootDir: string, matrixPath?: string): DesignImplementationTraceabilityReport;
export declare function extractTraceabilityBindingIds(context: TaskContext): string[];
export declare function verifyChangedFilesAgainstDesignTraceability(rootDir: string, changedFiles: string[], context: TaskContext): TraceabilityBindingVerificationResult;
/**
 * 构建
 */
export declare function buildTraceabilityChain(context: TaskContext): TraceabilityChain;
//# sourceMappingURL=traceability.d.ts.map