export declare const RRF_K = 60;
export type RerankKind = "folder" | "connector";
export interface RerankInput<P> {
    readonly kind: RerankKind;
    readonly redactedText: string;
    readonly engineScore: number;
    readonly sourceLabel: string;
    readonly tieKey: string;
    readonly payload: P;
}
export interface RerankBudget {
    readonly maxCandidates: number;
    readonly maxExcerptBytes: number;
}
export interface SelectedCandidate<P> {
    readonly kind: RerankKind;
    readonly redactedText: string;
    readonly bytes: number;
    readonly sourceLabel: string;
    readonly engineRank: number;
    readonly fusedScore: number;
    readonly marker: number;
    readonly payload: P;
}
export declare function rerankAndSelect<P>(inputs: readonly RerankInput<P>[], budget: RerankBudget): readonly SelectedCandidate<P>[];
//# sourceMappingURL=grounded-rerank.d.ts.map