import React from 'react'; import { CloseOrigin } from '../BaseDialog'; interface DialogProps { /** * The content of the dialog to render */ children: React.ReactNode; /** * Only effective when used in conjunction with totalSteps. Determines how * many of the step indicators to highlight. The mechanism for controlling the * step and navigating between them, should be provided within your content. */ currentStep?: number; /** * When true, the close button in the top right corner will not be shown */ hideCloseButton?: boolean; /** * Whether to hide or show the Dialog */ isOpen: boolean; /** * This function is called whenever the user requests to close the Dialog. It * is the responsibility of the application to handle this correctly and set * isOpen to false. This function will be called with an origin string that * specifies how the user requested to close the modal. */ onClose: (origin: CloseOrigin) => void; /** * When true (default), the Dialog will close when the Esc key is pressed. */ shouldCloseOnEsc?: boolean; /** * When true (default), the Dialog will close when the bckground overlay is * clicked. */ shouldCloseOnOverlayClick?: boolean; /** * The total number of step indicators to show beneath the Dialog. When * present this can be used along with currentStep to display a multi-step * dialog. */ totalSteps?: number; /** * The width of the Dialog in pixels. This will be used when the user's screen * is sufficiently large. Otherwise the Dialog will fit to the user's screen. */ width: number; } declare const Dialog: { ({ children, currentStep, hideCloseButton, isOpen, onClose, shouldCloseOnEsc, shouldCloseOnOverlayClick, totalSteps, width, }: DialogProps): React.ReactElement; Header: ({ children }: import("../shared/Header").HeaderProps) => React.ReactElement React.ReactElement | null) | (new (props: any) => React.Component)>; Body: ({ children }: import("../shared/Body").BodyProps) => React.ReactElement React.ReactElement | null) | (new (props: any) => React.Component)>; Footer: { ({ children }: import("../shared/Footer").FooterProps): React.ReactElement React.ReactElement | null) | (new (props: any) => React.Component)>; propTypes: { children: import("prop-types").Requireable; }; }; }; export default Dialog;