/** * KnowledgeReader — query interface over the index (KG Req 5.1–5.7). * * Reads never touch the YAML sources; everything is served from the * KnowledgeIndex. Subgraph traversal is breadth-first in application code — * adequate for the target scale of ≤1000 entities (design DD1). * * @module */ import type { Entity, Relationship, GraphQueryResult } from './types.js'; import type { KnowledgeIndex } from './index/knowledge-index.js'; export interface QueryOptions { type?: string; minConfidence?: number; limit?: number; } export interface EntityDetail { entity: Entity; inbound: Relationship[]; outbound: Relationship[]; } export declare class KnowledgeReader { private readonly index; constructor(index: KnowledgeIndex); /** Full-text search with relationships for the matched set (KG Req 5.1). */ search(term: string, options?: QueryOptions): GraphQueryResult; /** Single entity with inbound and outbound relationships (KG Req 5.2). */ get(entityId: string): EntityDetail | undefined; /** Subgraph of all entities within `depth` hops (KG Req 5.3). */ subgraph(entityId: string, depth: number): GraphQueryResult; } //# sourceMappingURL=reader.d.ts.map