export default class ElementChildren { /** * Iterates through children that are typically specified as `props.children`, * but only maps over children that are "valid components". * * The mapFunction provided index will be normalised to the components mapped, * so an invalid component would not increase the index. * * @param {?*} children Children tree container. * @param {function(*, int)} func. * @param {*} context Context for func. * @return {object} Object containing the ordered map of results. */ static map(children: any, func: any, context?: any): any[]; /** * Iterates through children that are "valid components". * * The provided forEachFunc(child, index) will be called for each * leaf child with the index reflecting the position relative to "valid components". * * @param {?*} children Children tree container. * @param {function(*, int)} func. * @param {*} context Context for context. */ static forEach(children: any, func: any, context?: any): void; /** * Count the number of "valid components" in the Children container. * * @param {?*} children Children tree container. * @returns {number} */ static count(children: any): number; /** * Finds children that are typically specified as `props.children`, * but only iterates over children that are "valid components". * * The provided forEachFunc(child, index) will be called for each * leaf child with the index reflecting the position relative to "valid components". * * @param {?*} children Children tree container. * @param {function(*, int)} func. * @param {*} context Context for func. * @returns {array} of children that meet the func return statement */ static filter(children: any, func: any, context?: any): any[]; static find(children: any, func: any, context?: any): any; static every(children: any, func: any, context: any): boolean; static some(children: any, func: any, context: any): boolean; static toArray(children: any): any[]; }