/**
 * intent_expander — scope resolution, acceptance generation,
 * template data building, and execution contract helpers.
 */
import type { ClassifyResult, AcceptanceItem, KnowledgeEntry, KnowledgeInjectionReport, ScopeResult, ExecutionContract } from "../../../types/index.js";
import type { ProjectConfig } from "../../../types/index.js";
import type { IntentRouteDecision } from "../intent_router.js";
import type { KnowledgeIndexManager } from "../../../knowledge/index_manager.js";
import type { PlanContext } from "./types.js";
/** 模板渲染数据 — 用于 prompt 模板的动态键值集合 */
export interface TemplateData {
    intent: string;
    tech_stack: string;
    product_profile: string;
    affected_repos: string;
    matched_knowledge: Array<{
        name: string;
        content: string;
    }>;
    relevant_files: Array<{
        path: string;
        reason: string;
    }>;
    is_legacy_code: boolean;
    legacy_conventions: string[];
    scope: {
        allowed_paths: string;
        new_files_allowed: boolean;
        new_file_patterns?: string;
    };
    acceptance: {
        automated: AcceptanceItem[];
        manual: AcceptanceItem[];
    };
    degraded: boolean;
    output_artifact?: unknown;
    input_materials?: unknown;
    input_material_contract_notes?: string[];
    pipeline_hint?: string;
    prompt_injection_plan?: unknown;
    dual_layer_rules?: string[];
    /** 产物结构约束文本 — 从 Schema 注册中心生成，独立于三道门预算 */
    artifact_schema?: string;
    /** 产物过程规则文本 — 按 OperationType 选择，独立于三道门预算 */
    process_rules?: string;
}
/**
 * 解析 scope: 非代码任务使用简化 scope。
 */
export declare function resolveScope(config: ProjectConfig, classification: ClassifyResult, degraded: boolean, routeDecision?: IntentRouteDecision): ScopeResult;
/**
 * 生成验收标准: 根据执行形态选择不同验收。
 */
export declare function generateAcceptance(_intent: string, classification: ClassifyResult, matchedEntries: KnowledgeEntry[], _config: ProjectConfig, degraded: boolean, routeDecision?: IntentRouteDecision): {
    automated: AcceptanceItem[];
    manual: AcceptanceItem[];
};
export declare function parseAcceptanceItems(body: string): AcceptanceItem[];
export declare function buildExecutionContract(intent: string, classification: ClassifyResult, scope: ScopeResult, acceptance: {
    automated: AcceptanceItem[];
    manual: AcceptanceItem[];
}, routeDecision?: IntentRouteDecision): ExecutionContract;
/**
 * 根据执行形态构建模板数据。
 */
export declare function buildTemplateData(intent: string, techStack: string, config: ProjectConfig, classification: ClassifyResult, scope: ScopeResult, matchedEntries: KnowledgeEntry[], legacyConventions: string[], isLegacyCode: boolean, acceptance: {
    automated: AcceptanceItem[];
    manual: AcceptanceItem[];
}, degraded: boolean, routeDecision?: IntentRouteDecision, injectionReport?: KnowledgeInjectionReport): TemplateData;
/**
 * 注入计划阶段上下文（P2 + P3）
 */
export declare function injectPlanContext(prompt: string, planContext: PlanContext, knowledgeIndex: KnowledgeIndexManager): string;
//# sourceMappingURL=scope_acceptance.d.ts.map