UNPKG

430 BTypeScriptView Raw
1import type { ReactElement } from 'react';
2declare type ImperativeProps = {
3 visible?: boolean;
4 onClose?: () => void;
5 afterClose?: () => void;
6};
7declare type TargetElement = ReactElement<ImperativeProps>;
8export declare type ImperativeHandler = {
9 close: () => void;
10 replace: (element: TargetElement) => void;
11};
12export declare function renderImperatively(element: TargetElement): ImperativeHandler;
13export {};