import { NavigationRegionKind, NavigationRegistry, RegisteredRegion } from './navigationRegistry'; /** * Whether a registered root is currently a valid focus destination. * Hidden, inert, disabled, aria-hidden, or disconnected regions are * filtered out before traversal. In compact reactions mode the managed * panel carries hidden/inert state, so its regions drop out of the active * list while staying registered. */ export declare function isRegionFocusable(element: Element): boolean; /** * Active regions in DOM document order. Portal roots (outside the Root * element) are unsupported and excluded. Only the authoritative (first) * registration per singleton kind participates. */ export declare function getActiveRegionsInDomOrder(registry: NavigationRegistry, rootElement: Element | null): RegisteredRegion[]; export declare function findRegion(regions: readonly RegisteredRegion[], kind: NavigationRegionKind): RegisteredRegion | undefined; type Box = Pick; /** * The arrow key that points from box `a` to box `b` on screen, or undefined * when they overlap. Boxes that touch or overlap by a border still count as * separated. */ export declare function arrowBetween(a: Box, b: Box): string | undefined; /** * The element of `candidates` nearest to `from` along the arrow, or * undefined without layout. Used to enter a region next to where focus * came from (the cell beside a rail tab, the tab above a cell). Not * directional: callers pass the candidates of a region that already lies * in the arrow's direction (getRegionInDirection). */ export declare function nearestTo(from: Element, candidates: Element[], key: string): Element | undefined; /** * The nearest active region in the arrow's direction from `from`. Regions * qualify by where they lie relative to the whole `from` region; among * them, distance is measured from the `focused` element when it is inside * `from`, so a full-height rail tab leads to what is beside that tab. When * `prefer` lies in that direction at all it wins, even if another region * is closer (search and results face each other while searching). * Without layout: Down/Right is the next region in DOM order, Up/Left the * previous one. */ export declare function getRegionInDirection(registry: NavigationRegistry, rootElement: Element | null, from: NavigationRegionKind, { key, prefer, focused, }: { key: string; prefer?: NavigationRegionKind; focused?: Element | null; }): RegisteredRegion | undefined; export {};