import { FloatingFocusManager } from '@floating-ui/react'; import { type ComponentProps, type PropsWithChildren } from 'react'; export interface ModalBaseProps { className?: string; closeOnEscape?: boolean; closeOnBackdropClick?: boolean; trapFocus?: boolean; /** * What receives focus when the modal opens: an index into the modal's * tabbable elements, or a ref to the element itself. Defaults to the first * tabbable element, which is usually the close button. Pass a negative number * to leave focus alone — for content that focuses itself, such as an input * that autofocuses on mount. The focus trap stays active either way. */ initialFocus?: ComponentProps['initialFocus']; isOpen?: boolean; onDismiss?: () => void; onClickBackdrop?: () => void; 'aria-label'?: string; 'aria-labelledby'?: string; } export declare function ModalBase({ children, className, isOpen, closeOnEscape, closeOnBackdropClick, trapFocus, initialFocus, onDismiss, onClickBackdrop, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: PropsWithChildren): import("react").JSX.Element | null;