import * as React from "react"; import PopupOverlay from "../molecules/PopupOverlay"; export type PopupModalProps = import("./BasePopup").BasePopupProps & Object; export type PopupModalState = import("./BasePopup").BasePopupState & Object; /** * 1. if you need trace show: true * it extend from PopupOverlay * * 2. if you don't need append component * you could pass center or content to equla false */ /** * @extends {PopupOverlay} */ declare class PopupModal extends PopupOverlay { el: HTMLElement; /** * @type {PopupModalState} */ state: PopupModalState; /** @type {() => boolean} */ close: () => boolean; static defaultProps: { mask: boolean; name: string; modalClassName: string; }; /** * @type any */ _timer: any; _mount: boolean; _locked: boolean; /** * @type any */ _observer: any; /** * @param {HTMLElement} el */ handleModalRefCb: (el: HTMLElement) => HTMLElement; handleClose: () => void; /** * @param {React.MouseEvent} e */ handleContainerClick: (e: React.MouseEvent) => void; handleKeyUp: (/** @type KeyboardEvent*/ e: KeyboardEvent) => void; reCalculate: () => void; getBodyResetClass(): string; resetBodyCssClass(): void; setBodyCssClass(): void; lockScreen(): void; unlockScreen(): void; componentDidMount(): void; componentWillUnmount(): void; /** * @param {boolean} show */ shouldShow(show: boolean): React.JSX.Element; } export default PopupModal;