import { type Ref } from 'react'; /** * Custom hook to return children and children ref. Children must be a `HTML` or `SVG` element. * * It automatically merges internal and external refs. * @param children The children elements. * @param externalRef The external reference. * @group Hooks * @internal * @returns The element ref and the children with the ref. * @example * ```tsx * const { elementRef, elementChildren } = useChildrenRef(children, externalRef); * ``` * @private * @description * This hook is used to return children and children ref. Children must be a `HTML` or `SVG` element. */ export declare function useChildrenRef(children: unknown, externalRef?: Ref): { elementRef: import("react").RefObject; svgChildren: null; elementChildren?: undefined; } | { elementRef: import("react").RefObject; elementChildren: import("react").FunctionComponentElement<{ ref: (node: HTMLOrSVG | null) => void; }>; svgChildren?: undefined; };