{"version":3,"file":"highlight.d.ts","sources":["highlight.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA","sourcesContent":["import { OnChanges, SimpleChanges } from '@angular/core';\r\n/**\r\n * A component that helps with text highlighting.\r\n *\r\n * If splits the `result` text into parts that contain the searched `term` and generates the HTML markup to simplify\r\n * highlighting:\r\n *\r\n * Ex. `result=\"Alaska\"` and `term=\"as\"` will produce `Al<span class=\"ngb-highlight\">as</span>ka`.\r\n */\r\nexport declare class NgbHighlight implements OnChanges {\r\n    parts: string[];\r\n    /**\r\n     * The CSS class for `<span>` elements wrapping the `term` inside the `result`.\r\n     */\r\n    highlightClass: string;\r\n    /**\r\n     * The text highlighting is added to.\r\n     *\r\n     * If the `term` is found inside this text, it will be highlighted.\r\n     * If the `term` contains array then all the items from it will be highlighted inside the text.\r\n     */\r\n    result: string;\r\n    /**\r\n     * The term or array of terms to be highlighted.\r\n     * Since version `v4.2.0` term could be a `string[]`\r\n     */\r\n    term: string | string[];\r\n    ngOnChanges(changes: SimpleChanges): void;\r\n}\r\n"]}