UNPKG

466 BTypeScriptView Raw
1import React from 'react';
2import type { AnyObject } from './type';
3export declare function isFragment(child: any): boolean;
4type RenderProps = AnyObject | ((originProps: AnyObject) => AnyObject | undefined);
5export declare const replaceElement: <P>(element: React.ReactNode, replacement: React.ReactNode, props?: RenderProps) => React.ReactNode;
6export declare function cloneElement<P>(element: React.ReactNode, props?: RenderProps): React.ReactElement;
7export {};