import React from "react"; import { ButtonProps } from "../button"; import { ControlStatusProps } from "../../common/controls.type"; import { OverlayChildrenProps } from "../overlay"; export type OnPopupClose = (result?: T) => void; export type PopupButtons = ButtonProps[] | ((close: OnPopupClose) => ButtonProps[]); export type PopupButtonsDirection = "vertical" | "horizontal"; export interface PopupProps extends ControlStatusProps { title?: string | React.ReactElement; titleAlign?: "start" | "center" | "end"; children: string | React.ReactElement | ((props: OverlayChildrenProps) => React.ReactElement); buttons?: PopupButtons; buttonsDirection?: PopupButtonsDirection; show?: boolean; onClose?: OnPopupClose; danger?: boolean; info?: boolean; } declare const Popup: ({ show, onClose, title, titleAlign, children, buttons, buttonsDirection, success, error, warning, danger, info, }: PopupProps) => React.JSX.Element; export default Popup;