export declare class Util { /** * Wraps path with doublequotes, if it includes a space. * * This is necessary on Windows in order to handle spaces in file and directory names. * @param path file system path */ static q(path: string): string; static shouldBeDoubleQuoted(path: string): boolean; /** * Replaces all occurrences * @param text text to replace in * @param searchValue value to replace * @param replaceValue replacement value */ static replaceAll(text: string, searchValue: string, replaceValue: string): string; /** * Groups array by a key * @param list list to be grouped * @param keyGetter grouping key selector */ static groupBy(list: Array, keyGetter: (value: V) => K): Map; /** * Equivalent of flatMap from other languages. * @param arrayOfArrays array of arrays to be flattened to single dimentional array */ static flatMap(arrayOfArrays: Array>): Array; static distinct(array: Array): Array; } /** @returns `true` if `text1` and `text2` are equal ignoring case. */ export declare function equalsCaseInsensitive(text1: string, text2: string): boolean; export declare function addToMapOfSets(multiMap: Map>, key: K, value: V): void; export declare function removeFromMapOfSets(multiMap: Map>, key: K, value: V): boolean; export declare function addToMapOfLists(multiMap: Map, key: K, value: V): void; export declare function addAllToMapOfLists(multiMap: Map, key: K, values: V[]): void; export declare function split(collection: T[], predicate: (element: T) => boolean): [T[], T[]];