/**
 * intent_expander — knowledge querying and loading helpers.
 *
 * Functions for querying the knowledge index, loading builtin templates,
 * converting project knowledge assets, and matching templates by name.
 */
import type { ProjectConfig, KnowledgeEntry } from "../../../types/index.js";
import type { KnowledgeIndexManager } from "../../../knowledge/index_manager.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";
export declare function knowledgeTypeForProjectAsset(asset: ProjectKnowledgeAsset): KnowledgeEntry["type"];
export declare function readProjectKnowledgeBody(asset: ProjectKnowledgeAsset): string;
export declare function projectKnowledgeAssetToEntry(asset: ProjectKnowledgeAsset): KnowledgeEntry | null;
/**
 * 根据 pipeline_hint 名称加载内置流程模板。
 */
export declare function loadBuiltinByPipeline(pipelineName: string): KnowledgeEntry[];
/**
 * 路由驱动的知识匹配。
 * 优先使用 pipeline_hint、output_artifact.kind、route + execution_shape，
 * 降级为同类型通用产物 prompt，不退化成编码 prompt。
 */
export declare function queryKnowledgeForRoute(knowledgeIndex: KnowledgeIndexManager, intent: string, scopeFilters: string[], config: ProjectConfig, routeDecision: IntentRouteDecision | undefined, limit: number, taskStage?: TaskStage): KnowledgeEntry[];
//# sourceMappingURL=knowledge.d.ts.map