/** * Policy-Aware Knowledge Matcher * * Wraps the standard knowledge matcher with policy-based filtering and weighting. * Policies can exclude snippets, boost/suppress weights, and adjust category priorities * based on environment, tool context, and other factors. */ import type { RegoEvaluator } from '../config/policy-rego'; import type { KnowledgeQuery, KnowledgeMatch, LoadedEntry } from './types'; import type { FilteredKnowledgeResult } from './policy-types'; /** * Find knowledge matches with policy-based filtering and weighting * * This function wraps the standard knowledge matcher with policy intelligence, * allowing policies to control which snippets are surfaced and how they're prioritized. * * @param entries - All knowledge entries * @param query - Knowledge query * @param policy - Optional policy evaluator for filtering/weighting * @returns Filtered and weighted matches with metadata */ export declare function findPolicyAwareKnowledgeMatches(entries: LoadedEntry[], query: KnowledgeQuery, policy?: RegoEvaluator): Promise<{ matches: KnowledgeMatch[]; filterResult: FilteredKnowledgeResult; }>; /** * Get policy-aware knowledge snippets for selective injection * * This is a convenience wrapper around findPolicyAwareKnowledgeMatches * that returns snippets in the format expected by tools. * * @param entries - All knowledge entries * @param query - Knowledge query * @param policy - Optional policy evaluator * @returns Knowledge snippets with policy filtering applied */ export declare function getPolicyAwareKnowledgeSnippets(entries: LoadedEntry[], query: KnowledgeQuery, policy?: RegoEvaluator): Promise<{ snippets: Array<{ id: string; text: string; weight: number; tags?: string[]; category?: string; source?: string; severity?: 'required' | 'high' | 'medium' | 'low'; }>; filterResult: FilteredKnowledgeResult; }>; //# sourceMappingURL=policy-aware-matcher.d.ts.map