/**
 * Local Cross-Encoder Search Re-ranker
 *
 * Re-ranks search results using a local cross-encoder model (ms-marco-MiniLM-L-12-v2)
 * via the Python reranker worker. 100% local, no cloud dependency.
 *
 * If the local model is not available (sentence-transformers not installed, model not
 * downloaded, Python error), returns results as-is with a console.error() warning.
 *
 * CRITICAL: NEVER use console.log() - stdout is reserved for JSON-RPC protocol.
 *
 * @module services/search/reranker
 */
/**
 * Re-rank search results using a local cross-encoder model.
 *
 * Takes the top results (max 20), sends them to the local Python cross-encoder
 * for relevance scoring, and returns sorted results.
 *
 * If the local model is unavailable, returns the original results in their existing
 * order with reasoning indicating no reranking was performed.
 *
 * @param query - The original search query
 * @param results - Search results with original_text field
 * @param maxResults - Maximum results to return after re-ranking (default: 10)
 * @returns Re-ranked results with scores and reasoning
 */
export declare function rerankResults(query: string, results: Array<{
    original_text: string;
    [key: string]: unknown;
}>, maxResults?: number): Promise<Array<{
    original_index: number;
    relevance_score: number;
    reasoning: string;
    reranker_failed?: boolean;
    reranker_error_message?: string;
}>>;
//# sourceMappingURL=reranker.d.ts.map