import type { ComponentProps } from 'react'; export type DialogSize = 'sm' | 'md' | 'lg'; export interface DialogProps extends Omit, 'open'> { /** Whether the dialog is shown. Controlled: the dialog never closes itself. */ open: boolean; /** Called with `false` when the user asks to close (Esc, backdrop, close button, form method="dialog"). */ onOpenChange: (open: boolean) => void; /** Maximum inline size: sm 400px, md 560px, lg 760px. */ size?: DialogSize; /** Close when the backdrop is clicked. */ closeOnBackdrop?: boolean; /** Hide the corner close button. Provide another way to close. */ hideClose?: boolean; /** Accessible name of the corner close button. */ closeLabel?: string; } declare function DialogRoot({ open, onOpenChange, size, closeOnBackdrop, hideClose, closeLabel, className, children, ref, onCancel, onClose, onClick, onPointerDown, ...rest }: DialogProps): import("react").JSX.Element; declare function DialogHeader({ className, ...rest }: ComponentProps<'div'>): import("react").JSX.Element; declare function DialogTitle({ className, id, ...rest }: ComponentProps<'h2'>): import("react").JSX.Element; declare function DialogDescription({ className, id, ...rest }: ComponentProps<'p'>): import("react").JSX.Element; declare function DialogContent({ className, ...rest }: ComponentProps<'div'>): import("react").JSX.Element; declare function DialogFooter({ className, ...rest }: ComponentProps<'div'>): import("react").JSX.Element; /** A modal dialog on the native `` element. Compose with Dialog.Header, Dialog.Title, Dialog.Description, Dialog.Content and Dialog.Footer. */ export declare const Dialog: typeof DialogRoot & { Header: typeof DialogHeader; Title: typeof DialogTitle; Description: typeof DialogDescription; Content: typeof DialogContent; Footer: typeof DialogFooter; }; export {};