/**
 * intent_expander — 知识解析与注入边界门控。
 *
 * 从主 expand() 函数提取: 生命周期知识评估、
 * 项目知识门控、知识索引查询、注入边界
 * 强制执行和消费轨迹记录。
 */
import type { ProjectConfig, ClassifyResult, ExpandResult, KnowledgeEntry } from "../../../types/index.js";
import type { IntentRouteDecision } from "../intent_router.js";
import type { TaskStage } from "../../workflow/workflow_navigation_contract.js";
import type { ProjectKnowledgeAsset } from "../../contracts/project_knowledge_contract.js";
import { evaluateLifecycleKnowledgeDecision } from "../../contracts/lifecycle_knowledge_contract.js";
import { enforceKnowledgeInjectionBoundary, validateInjectionReport } from "../../knowledge/knowledge_injection_boundary.js";
import type { InputMaterial, IngestionEvidence, PromptInjectionPlan } from "../input_material_contract_registry.js";
import type { KnowledgeIndexManager } from "../../../knowledge/index_manager.js";
import type { createOutputArtifact } from "../../contracts/artifact_contract_registry.js";
import type { resolveWorkflow } from "../../workflow/workflow_contract_registry.js";
export interface KnowledgeResolutionResult {
    projectKnowledgeReport: ReturnType<typeof evaluateLifecycleKnowledgeDecision>["project_knowledge"];
    projectKnowledgeFindings: Array<{
        rel_path: string;
        code: string;
        severity: string;
        message_zh: string;
    }>;
    projectKnowledgeSelection: ReturnType<typeof evaluateLifecycleKnowledgeDecision>["knowledge_selection"];
    selectedProjectKnowledge: Array<ProjectKnowledgeAsset>;
    projectKnowledgeEntries: KnowledgeEntry[];
    matchedEntries: KnowledgeEntry[];
    filteredEntries: KnowledgeEntry[];
    injectionReport: ReturnType<typeof enforceKnowledgeInjectionBoundary>;
    degraded: boolean;
    governanceFindings: ReturnType<typeof validateInjectionReport>;
    blockedResult: ExpandResult | undefined;
}
export interface DualLayerResult {
    dlRules: string[];
}
export declare function resolveKnowledge(projectPath: string, intent: string, classification: ClassifyResult, config: ProjectConfig, knowledgeIndex: KnowledgeIndexManager, routeDecision: IntentRouteDecision | undefined, skipProjectKnowledgeHardBlock: boolean, safeIntent: string, safeGoal: string, workflowContract: ReturnType<typeof resolveWorkflow>, inputMaterials: InputMaterial[] | undefined, ingestionEvidences: IngestionEvidence[] | undefined, promptInjectionPlan: PromptInjectionPlan | undefined, outputArtifactRecord: ReturnType<typeof createOutputArtifact> | undefined, workflowGovernanceFindings: Array<{
    severity: string;
    rule: string;
    message: string;
}>, taskStage?: TaskStage): Promise<KnowledgeResolutionResult>;
export declare function resolveDualLayerMechanisms(routeDecision: IntentRouteDecision | undefined, workflowContract: ReturnType<typeof resolveWorkflow>): DualLayerResult;
//# sourceMappingURL=knowledge_resolution.d.ts.map