// @flow declare type SplitMatchesResult = Array<{| isMatch: boolean, str: string |}> declare module.exports: { highlightChars( text: string, chars: string, matchesWrapper: (s: string, index: number, array: SplitMatchesResult) => T, noMatchesWrapper?: ( s: string, index: number, array: SplitMatchesResult ) => T ): Array, highlightMatches( text: string, matches: number[], matchesWrapper: (s: string, index: number, array: SplitMatchesResult) => T, noMatchesWrapper?: ( s: string, index: number, array: SplitMatchesResult ) => T ): Array, splitMatches(text: string, matches: number[]): SplitMatchesResult }