/** * Memory Bridge — the read/search path: bridgeSearchEntries (semantic + * FTS5/BM25 keyword merge, stale and superseded-knowledge filtering, * cross-encoder reranking). Split out of memory-bridge.ts, which re-exports * it. */ export declare function bridgeSearchEntries(options: { query: string; namespace?: string; limit?: number; threshold?: number; dbPath?: string; /** Skip cross-encoder reranking even if the model is loaded. */ skipRerank?: boolean; /** When true, superseded knowledge chunks are kept in the results * (flagged by the caller). Default false — removed documents are * filtered out for security. */ includeSuperseded?: boolean; /** Project root to read document metadata from for the knowledge-superseded * check (default: getProjectRoot(), i.e. process.cwd()-derived). Callers * operating on an explicit project directory that differs from cwd — e.g. * searchKnowledge({ rootDir }) — must pass the SAME root here, or every * freshly-ingested doc in that directory reads as superseded (its content * hash won't be found in metadata read from the wrong place) and gets * filtered out despite matching the query. */ rootDir?: string; }): Promise<{ success: boolean; results: { id: string; key: string; content: string; score: number; namespace: string; provenance?: string; tags?: string[]; }[]; searchTime: number; /** What actually ran, never what was requested. 'keyword-fallback' means the * vector path was attempted and did not produce the results. */ searchMethod?: 'semantic' | 'keyword' | 'keyword-fallback'; /** Whether a cross-encoder reranker was applied to the final results. */ reranked?: boolean; /** Why the vector path did not serve these results (absent when it did). */ fallbackReason?: 'no-embedding-model' | 'empty-query' | 'embedding-failed' | 'no-semantic-matches'; error?: string; } | null>; //# sourceMappingURL=memory-bridge-search.d.ts.map