import type { SearchResult, CodeChunk } from "../types.js";
/**
 * Rerank SearchResult[] using a cross-encoder model.
 * Returns results reordered by cross-encoder score.
 * Falls back to original order if the model is unavailable.
 */
export declare function rerankResults(query: string, results: SearchResult[], topN?: number, model?: string): Promise<SearchResult[]>;
/**
 * Rerank chunk IDs using a cross-encoder model.
 * Returns reordered chunk IDs.
 */
export declare function rerankChunkIds(query: string, chunkIds: string[], chunks: Map<string, CodeChunk>, topN?: number, model?: string): Promise<string[]>;
/** Reset caches for testing. */
export declare function _resetReranker(): void;
//# sourceMappingURL=reranker.d.ts.map