import type { AdapterLike } from './wiki-page-index.js'; import type { SearchHitDiagnostics } from '../search/search-quality.js'; export type { AdapterLike }; export interface SearchRollupLeafHit { source_type: 'decision' | 'checkpoint' | 'wiki_page' | 'connector_event'; source_id: string; fused_rank_score: number; page_type?: 'case'; case_id?: string | null; record: unknown; retrieval_diagnostics?: SearchHitDiagnostics; } export interface SearchRollupResult { source_type: 'decision' | 'checkpoint' | 'wiki_page' | 'case' | 'standalone_connector_hit'; source_id: string; case_id: string | null; score: number; contributing_leaves?: string[]; contributing_leaf_diagnostics?: Record; retrieval_diagnostics?: SearchHitDiagnostics; record: unknown; } export declare function rollUpSearchHits(input: { fusedHits: SearchRollupLeafHit[]; adapter: AdapterLike; }): SearchRollupResult[]; //# sourceMappingURL=search-rollup.d.ts.map