/**
 * 设计到交付生命周期合同。
 *
 * 本模块是设计、实现、测试、验收各节点输入输出的唯一口径。
 * 其他门禁只能消费这里定义的阶段产物，不能在 sf_verify 或 hook 中临时新增文件假设。
 */
export type DesignLifecycleStageId = "requirements_intake" | "prototype_extraction" | "architecture_design" | "detail_design" | "slice_planning" | "implementation" | "testing" | "acceptance" | "delivery";
export type LifecycleArtifactRole = "input" | "output" | "authority" | "evidence";
export interface LifecycleArtifactContract {
    id: string;
    role: LifecycleArtifactRole;
    path: string;
    required: boolean;
    description_zh: string;
    aliases?: string[];
}
export interface LifecycleGateContract {
    id: string;
    owner: "soloforge_next" | "sf_expand" | "sf_verify" | "sf_review" | "sf_deliver" | "cli";
    blocks: string[];
    required_evidence: string[];
    recovery_command?: string;
}
export interface DesignLifecycleStageContract {
    stage_id: DesignLifecycleStageId;
    name_zh: string;
    purpose_zh: string;
    inputs: LifecycleArtifactContract[];
    outputs: LifecycleArtifactContract[];
    authorities: LifecycleArtifactContract[];
    gates: LifecycleGateContract[];
}
export interface DesignLifecycleContractFinding {
    code: string;
    severity: "hard_fail" | "advisory";
    stage_id?: DesignLifecycleStageId;
    message_zh: string;
}
export interface DesignLifecycleArtifactPaths {
    decision_record: string;
    architecture_document: string;
    database_document: string;
    api_document: string;
    optional_detail_design_document: string;
    slice_plan: string;
    consistency_report: string;
    traceability_matrix: string;
    openapi: string;
    sql_roots: string[];
}
export declare const DESIGN_LIFECYCLE_TRACEABILITY_MATRIX_PATH = "docs/traceability/01-\u9700\u6C42\u539F\u578B\u8BBE\u8BA1\u5B9E\u73B0\u8FFD\u8E2A\u77E9\u9635.md";
export declare const DESIGN_LIFECYCLE_SLICE_PLAN_PATH = "docs/architecture/04-\u5F00\u53D1\u5207\u7247\u8BA1\u5212.md";
export declare const DESIGN_LIFECYCLE_LEGACY_SLICE_PLAN_PATHS: readonly ["docs/architecture/04-第一阶段开发切片计划.md"];
export declare const DESIGN_LIFECYCLE_SQL_ROOTS: readonly ["db/migrations", "db/migration", "db/schema", "db/changelog", "docs/db/migration", "backend/db/migration", "backend/src/main/resources/db/migration", "server/src/main/resources/db/migration", "apps/backend/src/main/resources/db/migration"];
export declare function listDesignLifecycleStageContracts(): DesignLifecycleStageContract[];
export declare function getDesignLifecycleStageContract(stageId: DesignLifecycleStageId): DesignLifecycleStageContract;
export declare function getDesignLifecycleArtifactPaths(): DesignLifecycleArtifactPaths;
export declare function getDesignLifecycleArtifactAliases(path: string): string[];
export declare function validateDesignLifecycleContract(): DesignLifecycleContractFinding[];
//# sourceMappingURL=design_lifecycle_contract.d.ts.map