/** * Shared lexical-search fallback for stores without native full-text search * (JsonCortexStore, FirestoreCortexStore). SqliteCortexStore uses FTS5/BM25 * instead. Scoring is simple weighted token overlap — good enough to surface * exact-keyword matches that embedding search misses. */ import type { Memory, SearchResult } from '../core/types.js'; /** Lowercase alphanumeric tokens, 2+ chars. */ export declare function tokenize(text: string): string[]; /** * Rank `memories` by lexical overlap with `text`. Skips faded memories and * zero-score candidates. Returns at most `limit` results, best first. */ export declare function lexicalSearch(memories: Memory[], text: string, limit: number): SearchResult[]; //# sourceMappingURL=_lexical.d.ts.map