import { type RerankResult } from './response.js'; export type { RerankResult } from './response.js'; /** One rerank call: the results to hand over, and the command that handles them. */ export interface RerankRequest { /** Search results in their pre-rerank order. Returned as-is on failure. */ candidates: RerankResult[]; /** Query text, substituted for `{query}` in configured argument templates. */ query: string; /** Result count the caller wants, substituted for `{top}`. */ top: number; /** Configured executable and argument template. */ command: string; /** Per-call budget. The spawned process is killed when it elapses. */ timeoutMs: number; } /** * What the command produced, or the results unchanged when it could not run or * answered with something that is not a valid result set. Never throws. */ export declare function rerankCandidates(request: RerankRequest): Promise; //# sourceMappingURL=index.d.ts.map