import type { ChunkMetadata, SearchResult } from "../types.js"; interface RankedHit { id: string; text: string; metadata: ChunkMetadata; score: number; } export interface RankedList { name: "vector" | "keyword"; weight: number; /** Best first. */ hits: RankedHit[]; } /** * Reciprocal Rank Fusion: `fused(d) = Σ weight / (rrfK + rank(d))` over the * lists, with ranks starting at 1. `score` is the fused score divided by the * highest possible one, so 1 means "ranked first by every list", and * `scores` keeps each list's own score. */ export declare function reciprocalRankFusion(lists: RankedList[], rrfK: number, topK: number): SearchResult[]; export {};