export declare function flatMap(arr: T[], fn: (i: T) => U[]): U[]; export declare function mapValues(obj: { [P in keyof T]: T[P]; }, fn: (i: T[keyof T], k: keyof T) => TResult): { [P in keyof T]: TResult; }; export declare function loadJSONSync(path: string): any; export declare function exists(path: string): Promise; export declare function loadJSON(path: string): Promise; export declare function compact(a: (T | undefined)[]): T[]; export declare function uniq(arr: T[]): T[];