/** * Creates an array with all nested collections concatenated recursively into one layer. * * @param {Collection} collection * @param {number} depth * * @returns {Array} */ export default function flatten(collection: Collection, depth?: number): any[];