export interface HighlightResult {
    text: string;
    highlights: Array<{
        start: number;
        end: number;
    }>;
}
export interface HighlightSegment {
    text: string;
    highlighted: boolean;
}
export declare function highlightTextToSegments(text: string, queryTerms: string[]): HighlightSegment[];
export declare function highlightText(text: string, queryTerms: string[], tag?: string): string;
export declare function generateSnippet(content: string, queryTerms: string[], options?: {
    maxLength?: number;
    contextBefore?: number;
    contextAfter?: number;
}): string;
export declare function highlightSnippet(content: string, queryTerms: string[], options?: {
    maxLength?: number;
    contextBefore?: number;
    contextAfter?: number;
    tag?: string;
}): string;
export declare function highlightSnippetToSegments(content: string, queryTerms: string[], options?: {
    maxLength?: number;
    contextBefore?: number;
    contextAfter?: number;
}): HighlightSegment[];
export declare function tokenizeQuery(query: string): string[];
//# sourceMappingURL=highlighter.d.ts.map