import { Attributes, FunctionComponentElement, ComponentElement, ReactElement, ReactNode, DOMElement } from 'react'; declare type GetProps = E extends FunctionComponentElement | ComponentElement | DOMElement ? P & { ref?: E['ref']; } : 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; } & Attributes & P, ...children: ReactNode[]): E; export default safeCloneElement; export { safeCloneElement }; //# sourceMappingURL=safeCloneElement.d.ts.map