import { type RefObject } from 'react'; export interface UseFocusTrapOptions { /** When `false` the trap is inert. Defaults to `true`. */ enabled?: boolean; /** * When `true`, focus initial autofocus into the first focusable * descendant on mount / enable. @default true */ autoFocus?: boolean; /** * When `true`, restores focus to the previously-focused element on * unmount / disable. @default true */ restoreFocus?: boolean; } /** * Constrain Tab navigation to descendants of `containerRef`. Wraps Tab * forward from the last focusable to the first, and Shift+Tab back from * the first to the last. Optionally autofocuses on enable and restores * focus on disable. * * Use this for inline modal patterns or focus zones that don't ship * with their own Radix overlay. Don't stack it inside Dialog / Sheet — * Radix already traps focus in those. * * @example * const ref = useRef(null); * useFocusTrap(ref, { enabled: open }); * return
…
; */ export declare function useFocusTrap(containerRef: RefObject, options?: UseFocusTrapOptions): void; //# sourceMappingURL=use-focus-trap.d.ts.map