import React from 'react'; export type ModalType = React.ElementType< T & { close: (...args: any[]) => void } >; export interface ModalDetail { component: ModalType; props: any; target?: HTMLElement; resolve?: (...args: any[]) => void; close?: (...args: any[]) => void; }