/**
 * Recursively flattens an array.
 * A new array containing all the elements is returned.
 * If level is specified, it will only flatten up to that level.
 */
declare function flatten(arr: any, level: any): any;
export default flatten;
