/**
 * 问题五十三: Workflow Template Pack — 工作流模板包契约。
 *
 * 强制执行:
 * - workflow template pack 不得只新增文件，必须 indexed → registered → injected → consumed → verified
 * - verified 状态必须有真实链路证据，禁止手工置绿
 * - 链路验证: 文件存在、ConsumableAssetRegistry 登记、workflow contract 引用、scenario 可达
 */
import type { WorkflowTemplatePackContract, WorkflowTemplateEntry, MechanismConsumptionMap, TemplateConsumptionEvidence, TemplateConsumptionStatus } from "./extension_platform_contracts.js";
export interface TemplatePackValidationResult {
    valid: boolean;
    violations: string[];
    pipeline_progress: Array<{
        template_path: string;
        current_status: TemplateConsumptionStatus;
        next_required: TemplateConsumptionStatus | "done";
    }>;
}
/**
 * 创建工作流模板包契约。
 */
export declare function createWorkflowTemplatePackContract(overrides?: Partial<WorkflowTemplatePackContract>): WorkflowTemplatePackContract;
/**
 * 创建工作流模板条目。
 */
export declare function createWorkflowTemplateEntry(workflowId: WorkflowTemplateEntry["workflow_id"], templatePath: string): WorkflowTemplateEntry;
/**
 * 创建模板消费证据。
 */
export declare function createTemplateConsumptionEvidence(templatePath: string): TemplateConsumptionEvidence;
/**
 * 推进模板消费状态。
 */
export declare function advanceTemplateConsumptionStatus(currentStatus: TemplateConsumptionStatus): {
    allowed: boolean;
    next: TemplateConsumptionStatus;
    reason: string;
};
/**
 * 检查 workflow contract 是否引用了指定 workflow_id 的模板。
 */
export declare function findWorkflowContractForTemplate(workflowId: string): {
    found: boolean;
    prompt_template: string;
};
/**
 * 验证模板消费证据链路的真实性。
 * 1. template_path 文件真实存在
 * 2. template_path 通过 ConsumableAssetRegistry path 查到对应 asset
 * 3. asset.owner_mechanism_id 与 workflow.owner_mechanism_ids 一致
 * 4. workflow contract 真实存在且 prompt_template 匹配
 * 5. workflow_template_refs 指向真实 contract
 * 6. sync_migration_refs 解析 manifest:<path> 并确认路径真实存在
 * 7. scenario_refs 必须指向真实 scenario ID
 */
export declare function validateEvidenceChain(workflow: WorkflowTemplateEntry, evidence: TemplateConsumptionEvidence): string[];
/**
 * 验证模板包完整性。
 * - 不得只新增文件而不走完消费 pipeline
 * - 禁止手工置绿: verified 必须有真实链路证据
 * - 链路真实性验证: ConsumableAssetRegistry、WorkflowContract、scenario 格式
 */
export declare function validateWorkflowTemplatePack(pack: WorkflowTemplatePackContract, consumptionEvidences: TemplateConsumptionEvidence[]): TemplatePackValidationResult;
/**
 * 验证机制消费地图。
 */
export declare function validateMechanismConsumptionMap(map: MechanismConsumptionMap[], templatePaths: string[]): {
    valid: boolean;
    missing: string[];
};
//# sourceMappingURL=workflow_template_pack.d.ts.map