import { OnChanges, SimpleChanges } from '@angular/core'; import * as i0 from "@angular/core"; export declare class NggvTypeaheadHighlightComponent implements OnChanges { /** The text that is displayed in the dropdown list */ textContent?: string; /** The substring that should be highlighted within textContent */ textToHighlight?: string; prefix?: string; match?: string; suffix?: string; text: string; input: string; /** * Regexp of characters that are allowed in textContent without being found in textToHighlight * Allow whitespaces. * */ allowedNonMatchingChars: RegExp; ngOnChanges(changes: SimpleChanges): void; private updateValues; /** * Function that finds the start and end index of where the input is located within the text to display. * First occurence is returned. Allows for spaces to occur despite input not matching space. * Loops through each character in splittedText and when a char in splittedText equlas the first character of * splittedInput, evaluate wether it's match on the entire input. * - If it's => return indexes. * - If it's not => break out and check next char in outer loop. * @param splittedText the text content splitted in an array * @param splittedInput the input splitted in an array * @returns { start: number, end: number } Indexes of where the match starts and ends in the text displatyed */ private getHighlightedPart; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }