/** The elements a `Tab` press can land on — this package's one definition of "tabbable", for components that have to walk the tab order by hand. */ export declare const TABBABLE_SELECTOR: string; /** * Every tabbable element inside `container`, in document order. Uses only the * selector without visibility checks (unlike focus traps) because overlays are * small subtrees only in the DOM while open. */ export declare function tabbablesWithin(container: Element): HTMLElement[]; /** * Keeps Tab cycling inside `container` while it is the modal surface: Tab from the last tabbable * lands on the first and Shift+Tab from the first on the last. A native `showModal()` leaves the * loop through the browser chrome instead, which assistive technology reads as focus escaping. * * @param container the modal surface, typically the open `` * @param event the keydown to act on; anything but an unhandled Tab is ignored */ export declare function wrapTabWithin(container: Element, event: KeyboardEvent): void;