import React, { ReactElement, ReactNode } from "react"; export interface ModalWindowComponentProps { /** True to display modal window */ isOpen: boolean; /** Called when close X is clicked */ onRequestClose?: () => void; backgroundColor?: string; /** Outer padding default 40 */ outerPadding?: number; /** Inner padding default 20 */ innerPadding?: number; children?: ReactNode; } /** Modal window that fills screen */ export default class ModalWindowComponent extends React.Component { modalNode: HTMLDivElement; /** Render something into a top-level div */ static show: (modalFunc: (close: () => void) => ReactElement, onClose?: () => void) => void; constructor(props: ModalWindowComponentProps); componentWillUnmount(): void; render(): React.ReactPortal; }