import { default as React } from 'react'; /** * Extracts specific child components from a `ReactNode` collection based on a provided mapping * of component names to their corresponding React functional components. * * @param {React.ReactNode} children - The children prop from a React component, typically containing * a mix of various components and elements. * @param {Record} componentsMap - An object mapping keys (component names) to their * corresponding React functional components. The keys are used to identify and extract the desired * components from the `children`. * * @returns {[Partial>, React.ReactNode[]]} A tuple where the first element * is an object containing the extracted components, and the second element is an array of the remaining children. * * @example * const [{ actions, masthead, navigation, sideNav }, rest] = extractNamedComponents( * children, * { * masthead: HeaderMasthead, * navigation: __Navigation, * actions: HeaderActions, * }, * ); * * // `extracted` will contain the corresponding React elements if they were found in the `children`. * // `rest` will contain the remaining React elements that were not extracted. */ export declare function extractSpecifiedComponents(children: React.ReactNode, componentsMap: Record): [Partial>, React.ReactNode[]];