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