import type { MaybeElementRef, MaybeRefOrGetter } from '../../types/shared/utils'; import type { Options as FocusTrapOptions } from 'focus-trap'; export interface UseFocusTrapOptions extends FocusTrapOptions { autoFocusElement?: string | boolean; } /** * Best-practice defaults for dialogs (Modal/Drawer/Popover): * - Keep trap active unless component decides to close (avoid implicit deactivation). * - Always provide a fallback focus target to avoid runtime errors when no tabbables exist. * - Prevent scroll jumps caused by focusing. * - Share a trap stack among PXD traps so nested dialogs coordinate pause/unpause. */ export declare function useFocusTrap(container: MaybeElementRef, userOptions?: MaybeRefOrGetter): { stop: () => void; };