import React from 'react'; import type { ReactElement } from 'react'; export type FocusTrapBaseProps = { onEscPress?: () => void; /** * Use for editable Search Input components to ensure focus is correctly applied */ disableTypeFocus?: boolean; /** * Disables the focus trap to allow normal keyboard navigation. */ disableFocusTrap?: boolean; /** * If `true`, the focus trap will not automatically shift focus to itself when it opens, and * replace it to the last focused element when it closes. */ disableAutoFocus?: boolean; /** * If `true`, the focus trap will not allow arrow key navigation. */ disableArrowKeyNavigation?: boolean; /** * If `true`, the focus trap will restore focus to the previously focused element when it unmounts. */ restoreFocusOnUnmount?: boolean; /** * If `true`, the focus trap will include the trigger in the focus trap. */ includeTriggerInFocusTrap?: boolean; /** * If `true`, the focus trap will respect negative `tabIndex` values, removing them from the list of focusable elements. */ respectNegativeTabIndex?: boolean; /** * If `true`, the focus trap will include all elements with `tabIndex` values in the list of focusable elements. */ focusTabIndexElements?: boolean; /** * The amount of time in milliseconds to wait before auto-focusing the first focusable element. */ autoFocusDelay?: number; }; export type FocusTrapProps = FocusTrapBaseProps & { children: ReactElement & { ref?: React.Ref; }; }; export declare const NAVIGATION_KEYS: string[]; export declare const FocusTrap: React.MemoExoticComponent< (_props: FocusTrapProps) => import('react/jsx-runtime').JSX.Element >; //# sourceMappingURL=FocusTrap.d.ts.map