/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { DialogCloseEvent } from './events';
import { WebMcpProps } from '@progress/kendo-react-common';
/**
* Represents the props of the [KendoReact Dialog component](https://www.telerik.com/kendo-react-ui/components/dialogs/dialog).
*/
export interface DialogProps {
/**
* Set the focus the Dialog container automatically when mounted.
*
* @default false
*
* @example
* ```jsx
*
* ```
*
* @remarks
* This property is related to accessibility.
*/
autoFocus?: boolean;
/**
* Specifies the query selector used to set the initial focus ([see examples](https://www.telerik.com/kendo-react-ui/components/dialogs/dialog/initial-focus)).
*
* @example
* ```jsx
*
* ```
*
* @remarks
* This property is related to accessibility.
*/
autoFocusedElement?: string;
/**
* Sets the title of the Dialog ([see example](https://www.telerik.com/kendo-react-ui/components/dialogs/dialog/title)). If you do not specify the `title`, the Dialog does not render a **Close** button.
*
* @example
* ```jsx
*
* ```
*/
title?: string | React.ReactElement;
/**
* Sets a class of the Dialog DOM element.
*
* @example
* ```jsx
*
* ```
*/
className?: string;
/**
* Specifies whether a close button should be rendered at the top corner of the dialog.
*
* @default true
*
* @example
* ```jsx
*
* ```
*/
closeIcon?: boolean;
/**
* Specifies if the Dialog will be modal by rendering an overlay under the component.
*
* @default true
*
* @example
* ```jsx
*
* ```
*/
modal?: boolean;
/**
* Set styles to the Dialog overlay element rendered when the `modal` prop is enabled.
*
* @example
* ```jsx
*
* ```
*/
overlayStyle?: React.CSSProperties;
/**
* Specifies the width of the Dialog ([see example](https://www.telerik.com/kendo-react-ui/components/dialogs/dialog/dimensions)).
*
* @example
* ```jsx
*
* ```
*/
width?: number | string;
/**
* Specifies the height of the Dialog ([see example](https://www.telerik.com/kendo-react-ui/components/dialogs/dialog/dimensions)).
*
* @example
* ```jsx
*
* ```
*/
height?: number | string;
/**
* Specifies the minimum width of the Dialog.
*
* @example
* ```jsx
*
* ```
*/
minWidth?: number | string;
/**
* Fires when the **Close** button in the title is clicked or when the `Esc` button is pressed.
*
* @example
* ```jsx
*