import { type ReactElement } from 'react';
import * as React from 'react';
/** Returns the ID value of the first, and only, child element  */
export declare function getChildId(children: ReactElement<Record<string, unknown>>): string | undefined;
/**
 * Given react node or function returns element accordingly
 *
 * @param itemToRender
 * @param props props to be passed to the function if item provided as such
 */
export declare function renderOrCallToRender<TProps = {}>(itemToRender: ((props: TProps) => React.ReactNode) | React.ReactNode, props?: TProps): React.ReactNode;
