import { OnChanges, SimpleChanges } from '@angular/core'; /** * A component that helps with text highlighting. * * If splits the `result` text into parts that contain the searched `term` and generates the HTML markup to simplify * highlighting: * * Ex. `result="Alaska"` and `term="as"` will produce `Alaska`. */ import * as ɵngcc0 from '@angular/core'; export declare class NgbHighlight implements OnChanges { parts: string[]; /** * The CSS class for `` elements wrapping the `term` inside the `result`. */ highlightClass: string; /** * The text highlighting is added to. * * If the `term` is found inside this text, it will be highlighted. * If the `term` contains array then all the items from it will be highlighted inside the text. */ result: string; /** * The term or array of terms to be highlighted. * Since version `v4.2.0` term could be a `string[]` */ term: string | string[]; ngOnChanges(changes: SimpleChanges): void; static ɵfac: ɵngcc0.ɵɵFactoryDeclaration; static ɵcmp: ɵngcc0.ɵɵComponentDeclaration; } //# sourceMappingURL=highlight.d.ts.map