import { ComponentType } from 'react'; export declare type ModalComponent
= ComponentType
; export declare type ModalComponentProps
= Omit
;
export interface Props {
open?: Boolean;
[key: string]: any;
}
export interface Options {
hideOnClose?: boolean;
destroyOnClose?: boolean;
rootId?: string;
}
export interface State {
[id: string]: StateElement;
}
export interface StateElement {
component: ComponentType (id: string, props: Partial (component: ComponentType , props?: ModalComponentProps , options?: Options) => ShowFnOutput ;
export interface ShowFnOutput {
id: string;
hide: () => void;
destroy: () => void;
update: (newProps: Partial