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 { _internal_ComponentDescription } from '../description/description.js'; declare let DEFAULT_DIALOG_TAG: "div"; interface 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'; __demoMode?: boolean; }>; declare function DialogFn(props: DialogProps, ref: Ref): JSX.Element; declare let DEFAULT_OVERLAY_TAG: "div"; interface OverlayRenderPropArg { open: boolean; } type OverlayPropsWeControl = 'aria-hidden'; export type DialogOverlayProps = Props; declare function OverlayFn(props: DialogOverlayProps, ref: Ref): React.ReactElement> | null; declare let DEFAULT_BACKDROP_TAG: "div"; interface BackdropRenderPropArg { open: boolean; } type BackdropPropsWeControl = 'aria-hidden'; export type DialogBackdropProps = Props; declare function BackdropFn(props: DialogBackdropProps, ref: Ref): JSX.Element; declare let DEFAULT_PANEL_TAG: "div"; interface PanelRenderPropArg { open: boolean; } export type DialogPanelProps = Props; declare function PanelFn(props: DialogPanelProps, ref: Ref): React.ReactElement> | null; declare let DEFAULT_TITLE_TAG: "h2"; interface 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): JSX.Element; } export interface _internal_ComponentDialogBackdrop extends HasDisplayName { (props: DialogBackdropProps & RefProp): JSX.Element; } export interface _internal_ComponentDialogPanel extends HasDisplayName { (props: DialogPanelProps & RefProp): JSX.Element; } export interface _internal_ComponentDialogOverlay extends HasDisplayName { (props: DialogOverlayProps & RefProp): JSX.Element; } export interface _internal_ComponentDialogTitle extends HasDisplayName { (props: DialogTitleProps & RefProp): JSX.Element; } export interface _internal_ComponentDialogDescription extends _internal_ComponentDescription { } export declare let Dialog: _internal_ComponentDialog & { Backdrop: _internal_ComponentDialogBackdrop; Panel: _internal_ComponentDialogPanel; Overlay: _internal_ComponentDialogOverlay; Title: _internal_ComponentDialogTitle; Description: _internal_ComponentDialogDescription; }; export {};