/** * BM25 (Okapi BM25) scoring algorithm for full-text search. */ export interface Document { id: string; fields: Record; } export interface ScoredResult { id: string; score: number; } export interface Bm25Index { search(query: string, limit?: number): ScoredResult[]; } /** * Tokenizes input text: lowercase, split on non-alphanumeric, filter short tokens. */ export declare function tokenize(text: string): string[]; /** * Creates a BM25 index over the given documents with field weights. */ export declare function createBm25Index(documents: Document[], fieldWeights: Record): Bm25Index; //# sourceMappingURL=bm25.d.ts.map