import React from 'react'; interface DialogProps { /** * Will be rendered underneatch the dialog */ additionalContent?: React.ReactNode; /** * The content of the BaseDialog */ children: React.ReactNode; /** * When true the closeButton will be disabled */ closeButtonDisabled?: boolean; /** * Used to set the ariaLabel for the modal */ contentLabel: string; /** * Used to set data- html attributes */ dataAttributes?: { [key: string]: string; }; /** * When set to true, a close button will show in the top right corner */ hideCloseButton: boolean; /** * Show or hide the dialog */ isOpen: boolean; /** * function that is executed immediately after opening the modal */ onAfterOpen?: () => void; /** * Called when the modal is closed * @param origin The original source of the request to close. */ onClose: (origin: CloseOrigin) => void; /** * When set to true the Esc key can be used to close the dialog */ shouldCloseOnEsc: boolean; /** * When set to true the dialog will close when the background is clicked */ shouldCloseOnOverlayClick: boolean; /** * Forces a specific width on the Modal. This */ width: number; } export declare type CloseOrigin = 'overlayClick' | 'escKey' | 'closeButton'; declare const BaseDialog: React.FC; export default BaseDialog;