/** One result, as `docs/schema/query-output.schema.json` defines it. */ export interface RerankResult { filePath: string; chunkIndex: number; text: string; score: number; fileTitle: string | null; images: { imageIndex: number; mimeType: 'image/png' | 'image/jpeg'; data: string; }[]; source?: string; [key: string]: unknown; } /** The reason reaches stderr, so it names no document text and no path. */ export type RerankMatch = { ok: true; results: RerankResult[]; } | { ok: false; reason: string; }; /** * An empty array, a shorter array, a chunk the server did not send and a * rewritten text are all valid answers; only the form is checked. */ export declare function validateRerankResponse(stdout: string): RerankMatch; //# sourceMappingURL=response.d.ts.map