import { MigrateStatus } from '../services'; export declare const flatten: (array: any[]) => any; export declare const dedupe: (array: any[]) => any[]; export declare const dedupeInner: (array: any[]) => any[]; /** * Callback for Array.sort() to sort an object array * alphabetically by the value of a given key */ export declare const sortByStringInKey: >(key?: string) => (a: T, b: T) => any; export declare const sortStatuses: { [key in MigrateStatus]: number; }; /** Sort an array of resources containing a migrate status * in a special order defined in sortStatuses */ export declare const sortByStatus: (statusA: any, statusB: any) => number; /** Update or push an item in an array, filtering an existing item * out of the array by id or the key provided and pushing the replaceItem * to the end of the array */ export declare const replaceItemByKey: (arr: any[], replaceItem: any, key?: string) => any[]; /** Update an array with another, filtering any existing items * out of the array by id and pushing the new items * to the end of the array */ export declare const replaceItemsById: (arr: any[], replaceItems: any[]) => any[];