import React from 'react';
/**
 * Constrains keyboard Tab navigation to stay within a given container element.
 *
 * This function implements a simple "focus loop" (a.k.a. focus trap) behavior.
 * When the user presses Tab on the last focusable element, focus will wrap to
 * the first focusable element. When pressing Shift+Tab on the first focusable
 * element, focus will wrap to the last.
 *
 * Use this in keyboard event handlers (typically onKeyDown) when building
 * components such as modals, popovers, drawers, or any UI that should trap
 * focus within a defined scope.
 *
 * @param element - The container within which focus should be scoped.
 * @param keyboardEvent - The keyboard event from React (usually from onKeyDown).
 */
export declare function scopeTab(element: HTMLElement, keyboardEvent: React.KeyboardEvent): void;
//# sourceMappingURL=scopeTab.d.ts.map