import { Attributes, FunctionComponentElement, ComponentElement, ReactElement, ReactNode, DOMElement } from 'react'; type GetProps = E extends FunctionComponentElement | ComponentElement | DOMElement ? P & { ref?: any; } : Record & { ref?: any; }; /** * --- * category: utilities/react * --- * Clones a React element without overwriting refs. * @param element The element to clone * @param props Props of the element * @param children */ declare function safeCloneElement = GetProps>(element: { ref?: any; } & E, props: { style?: any; } & Partial & Partial

, ...children: ReactNode[]): E; export default safeCloneElement; export { safeCloneElement }; //# sourceMappingURL=safeCloneElement.d.ts.map