import React, { type ElementType, type MutableRefObject, type Ref } from 'react'; import type { Props } from '../../types.js'; import { type HasDisplayName, type PropsForFeatures, type RefProp } from '../../utils/render.js'; import { type _internal_ComponentDescription } from '../description/description.js'; declare let DEFAULT_DIALOG_TAG: "div"; type DialogRenderPropArg = { open: boolean; }; type DialogPropsWeControl = 'aria-describedby' | 'aria-labelledby' | 'aria-modal'; declare let DialogRenderFeatures: number; export type DialogProps = Props & { open?: boolean; onClose: (value: boolean) => void; initialFocus?: MutableRefObject; role?: 'dialog' | 'alertdialog'; autoFocus?: boolean; transition?: boolean; __demoMode?: boolean; }>; declare function DialogFn(props: DialogProps, ref: Ref): React.JSX.Element; declare let DEFAULT_PANEL_TAG: "div"; type PanelRenderPropArg = { open: boolean; }; export type DialogPanelProps = Props; declare function PanelFn(props: DialogPanelProps, ref: Ref): React.JSX.Element; declare let DEFAULT_BACKDROP_TAG: "div"; type BackdropRenderPropArg = { open: boolean; }; export type DialogBackdropProps = Props; declare function BackdropFn(props: DialogBackdropProps, ref: Ref): React.JSX.Element; declare let DEFAULT_TITLE_TAG: "h2"; type TitleRenderPropArg = { open: boolean; }; export type DialogTitleProps = Props; declare function TitleFn(props: DialogTitleProps, ref: Ref): React.ReactElement> | null; export interface _internal_ComponentDialog extends HasDisplayName { (props: DialogProps & RefProp): React.JSX.Element; } export interface _internal_ComponentDialogPanel extends HasDisplayName { (props: DialogPanelProps & RefProp): React.JSX.Element; } export interface _internal_ComponentDialogBackdrop extends HasDisplayName { (props: DialogBackdropProps & RefProp): React.JSX.Element; } export interface _internal_ComponentDialogTitle extends HasDisplayName { (props: DialogTitleProps & RefProp): React.JSX.Element; } export interface _internal_ComponentDialogDescription extends _internal_ComponentDescription { } export declare let DialogPanel: _internal_ComponentDialogPanel; export declare let DialogBackdrop: _internal_ComponentDialogBackdrop; export declare let DialogTitle: _internal_ComponentDialogTitle; /** @deprecated use `` instead of `` */ export declare let DialogDescription: _internal_ComponentDialogDescription; export declare let Dialog: _internal_ComponentDialog & { /** @deprecated use `` instead of `` */ Panel: _internal_ComponentDialogPanel; /** @deprecated use `` instead of `` */ Title: _internal_ComponentDialogTitle; /** @deprecated use `` instead of `` */ Description: _internal_ComponentDialogDescription; }; export {};