import * as React from 'react'; import { DismissableLayer } from '@radix-ui/react-dismissable-layer'; import { FocusScope } from '@radix-ui/react-focus-scope'; import * as Radix from '@radix-ui/react-primitive'; type DialogContentImplElement = React.ElementRef; type DismissableLayerProps = Radix.ComponentPropsWithoutRef; type FocusScopeProps = Radix.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']; } interface DialogContentProps extends Omit { /** * Used to force mounting when more control is needed. Useful when * controlling animation with React animation libraries. */ forceMount?: true; } declare const DialogContent: React.ForwardRefExoticComponent>; export { DialogContent, type DialogContentImplElement, type DialogContentProps };