import type { RawSearchResult } from '../../types.js'; export interface ContextRankOptions { /** Multiplier range; results closer to context vector get higher boost. */ minMultiplier?: number; maxMultiplier?: number; } /** * Re-score results using cosine similarity vs the embedded query+context. * Returns a new array; does NOT mutate input. Returns input unchanged when * contextText is empty, the embed provider is unavailable, or embedding fails. */ export declare function applyContextRank(results: RawSearchResult[], query: string, contextText: string | undefined, options?: ContextRankOptions): Promise; //# sourceMappingURL=context-rank.d.ts.map