/**
 * LLM-Powered Memory Reranking — v4.0.0
 *
 * Optional hybrid recall: after embedding-based retrieval returns top-N candidates,
 * send them to an LLM to rerank by relevance to the query.
 */
import type { SearchResult } from './types.js';
export interface RerankConfig {
    enabled: boolean;
    model: string;
    maxCandidates: number;
}
export declare const DEFAULT_RERANK_CONFIG: RerankConfig;
/**
 * Build the reranking prompt for the LLM.
 */
export declare function buildRerankPrompt(query: string, candidates: {
    id: number;
    title: string;
    content: string;
}[]): string;
/**
 * Parse the LLM response to extract the reranked order.
 * Returns array of memory IDs in relevance order.
 */
export declare function parseRerankResponse(response: string): number[];
/**
 * Rerank search results using an LLM.
 * This is a framework function — the actual LLM call is delegated to a caller-provided function.
 */
export declare function rerankResults(query: string, results: SearchResult[], llmCall: (prompt: string) => Promise<string>, config?: RerankConfig): Promise<SearchResult[]>;
