: Event) => void; /** * Event handler called when auto-focusing on unmount. * Can be prevented. */ onUnmountAutoFocus?: (event: Event) => void; } declare const FocusScope: React$1.ForwardRefExoticComponent>; type PrimitiveDivProps$1 = React$1.ComponentPropsWithoutRef; interface PortalProps$1 extends PrimitiveDivProps$1 { /** * An optional container where the portaled content should be appended. */ container?: Element | DocumentFragment | null; } declare const Portal$1: React$1.ForwardRefExoticComponent>; type Scope = { [scopeName: string]: React$1.Context[]; } | undefined; type ScopeHook = (scope: Scope) => { [__scopeProp: string]: Scope; }; interface CreateScope { scopeName: string; (): ScopeHook; } declare const createDialogScope: CreateScope; interface DialogProps { children?: React$1.ReactNode; open?: boolean; defaultOpen?: boolean; onOpenChange?(open: boolean): void; modal?: boolean; } declare const Dialog: React$1.FC; type PrimitiveButtonProps = React$1.ComponentPropsWithoutRef; interface DialogTriggerProps extends PrimitiveButtonProps { } declare const DialogTrigger: React$1.ForwardRefExoticComponent>; type PortalProps = React$1.ComponentPropsWithoutRef; interface DialogPortalProps { children?: React$1.ReactNode; /** * Specify a container element to portal the content into. */ container?: PortalProps['container']; /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } declare const DialogPortal: React$1.FC; interface DialogOverlayProps extends DialogOverlayImplProps { /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } declare const DialogOverlay: React$1.ForwardRefExoticComponent>; type PrimitiveDivProps = React$1.ComponentPropsWithoutRef; interface DialogOverlayImplProps extends PrimitiveDivProps { } interface DialogContentProps extends DialogContentTypeProps { /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } declare const DialogContent: React$1.ForwardRefExoticComponent>; interface DialogContentTypeProps extends Omit { } type DismissableLayerProps = React$1.ComponentPropsWithoutRef; type FocusScopeProps = React$1.ComponentPropsWithoutRef; interface DialogContentImplProps extends Omit { /** * When `true`, focus cannot escape the `Content` via keyboard, * pointer, or a programmatic focus. * @defaultValue false */ trapFocus?: FocusScopeProps['trapped']; /** * Event handler called when auto-focusing on open. * Can be prevented. */ onOpenAutoFocus?: FocusScopeProps['onMountAutoFocus']; /** * Event handler called when auto-focusing on close. * Can be prevented. */ onCloseAutoFocus?: FocusScopeProps['onUnmountAutoFocus']; } type PrimitiveHeading2Props = React$1.ComponentPropsWithoutRef; interface DialogTitleProps extends PrimitiveHeading2Props { } declare const DialogTitle: React$1.ForwardRefExoticComponent>; type PrimitiveParagraphProps = React$1.ComponentPropsWithoutRef; interface DialogDescriptionProps extends PrimitiveParagra