/** Default RRF smoothing constant. Per Cormack et al (2009). */ export declare const RRF_K = 60; /** A single ranker's hit. `rank` is 1-based — caller is responsible for * numbering. `score` is the original ranker's score (carried through for * observability; not used by RRF math). */ export interface RankedHit { /** Stable identifier — same string across rankers means same document. * For enquire we use the vault-relative note path (`Auth/oauth.md`). */ id: string; /** 1-based rank position in the ranker's output. */ rank: number; /** Original ranker's score — passed through for diagnostics. */ score: number; } /** Per-signal contribution to a fused doc's RRF score. */ export interface SignalContribution { /** 1-based rank in the corresponding ranker's output. */ rank: number; /** Original score from the ranker (for debugging / UI). */ score: number; /** Contribution to the RRF total: 1 / (k + rank). */ rrf_term: number; } /** A fused result. `score` is the summed RRF total; `per_signal` records * which rankers contributed and their original ranks. */ export interface FusedHit { id: string; score: number; per_signal: Partial>; } /** Reciprocal Rank Fusion over named signals. Documents missing from a * signal contribute 0 from that signal — fusion is union-safe. * * Empty / undefined signals are silently ignored. If ALL signals are * empty, returns an empty array. */ export declare function reciprocalRankFusion(signals: Partial>>, opts?: { k?: number; topK?: number; }): FusedHit[]; /** Convert an arbitrary scored list into 1-based-ranked input for RRF. * Caller passes already-sorted hits (highest score first); we tag them. */ export declare function toRanked(hits: ReadonlyArray, options: { idOf: (hit: T) => string; scoreOf: (hit: T) => number; }): RankedHit[]; //# sourceMappingURL=rrf.d.ts.map