import type { BobbinYakeResult } from "./bobbin.js"; import type { KeywordScore } from "./KeywordExtractor.js"; import type { KeywordResult } from "./strategies.js"; /** * Configuration for the text highlighter utility. */ export interface TextHighlighterOptions { maxNgramSize?: number; highlightPre?: string; highlightPost?: string; } type HighlightInput = string | KeywordScore | KeywordResult | BobbinYakeResult; export declare class TextHighlighter { readonly maxNgramSize: number; readonly highlightPre: string; readonly highlightPost: string; /** * Creates a highlighter that wraps matched keywords in HTML markers. */ constructor(options?: TextHighlighterOptions); /** * Highlights keywords in the provided text. */ highlight(text: string, keywords: Iterable): string; } export {}; //# sourceMappingURL=highlight.d.ts.map