export interface KnowledgeEntry { /** Relative path from knowledge root */ path: string; /** Title from frontmatter */ title: string; /** Tags from frontmatter */ tags: string[]; /** Full markdown content (without frontmatter) */ content: string; /** zapret2 version from frontmatter */ zapret2Version?: string; /** blockcheckw version from frontmatter */ blockcheckwVersion?: string; } export declare class KnowledgeIndex { private knowledgeDir; private entries; private chunks; constructor(knowledgeDir: string); rebuild(): void; /** * Keyword-based search with chunk-level retrieval, intent detection, and context narrowing. * @param context - what the agent already knows/checked (used to deprioritize already-covered topics) */ query(topic: string, maxTokens?: number, context?: string): KnowledgeEntry[]; /** Get all entries (for listing) */ all(): KnowledgeEntry[]; private assembleResults; private detectIntent; /** * Adjust score based on context (what agent already knows). * Chunks heavily overlapping with context get deprioritized. * Chunks that add NEW information relative to context get boosted. */ private contextAdjust; private intentBoost; private tokenize; }