import { UndefinedToOptional } from '../types'; export declare function isDefined(a: T | undefined): a is T; /** * Remove any fields with an `undefined` value. * @param t - object to clean * @returns t */ export declare function cleanCopy>(t: T): U; /** * Remove any fields with an `undefined` value. * **MODIFIES THE OBJECT** * @param t - object to clean * @returns t */ export declare function clean>(t: T): U; export declare function unique(a: Iterable): T[]; export declare function flatten(i: Iterable>): Iterable; export declare function replaceAll(text: string, match: string, withText: string): string; /** * * @param text verbatim text to be inserted into a regexp * @returns text that can be used in a regexp. */ export declare function regexQuote(text: string): string; /** * Factory to create a function that will replace all occurrences of `match` with `withText` * @param match - string to match * @param replaceWithText - the text to substitute. */ export declare function replaceAllFactory(match: string, replaceWithText: string): (text: string) => string; /** * Shallow is Equal test. * @param a - array of values * @param b - array of values * @returns true if the values of `a` are exactly equal to the values of `b` */ export declare function isArrayEqual(a: K[], b: K[]): boolean; //# sourceMappingURL=util.d.ts.map