import type { SearchResultItem, Citation, Highlight } from '../types.js';
export interface HighlightSynthesisResult {
    highlights: Highlight[];
    citations: Citation[];
    reranker_used: boolean;
}
export interface Passage {
    text: string;
    charStart: number;
    charEnd: number;
}
export declare function splitIntoPassages(markdown: string): Passage[];
export interface AnnotatedPassage extends Passage {
    sectionHeading: string | null;
}
export declare function mapPassageHeadings(markdown: string, passages: Passage[]): AnnotatedPassage[];
export declare function extractHighlights(query: string, results: SearchResultItem[], maxHighlights?: number): Promise<HighlightSynthesisResult>;
export declare function fallbackHighlights(results: SearchResultItem[], maxHighlights: number): Highlight[];
//# sourceMappingURL=highlights.d.ts.map