/** * Marks an element that holds several focusable children but counts as one toolbar stop (a radiogroup). */ export declare const TOOLBAR_COMPOSITE_ATTR = "data-gd-toolbar-composite"; /** * Marks a subtree the toolbar keyboard navigation must ignore. Set it as a data attribute on a * wrapper element inside a {@link UiToolbar}. * * @internal */ export declare const TOOLBAR_SKIP_ATTR = "data-gd-toolbar-skip"; /** * Set on every element whose tabindex the toolbar wrote, so the write can be undone when the element * leaves the managed set. */ export declare const TOOLBAR_MANAGED_ATTR = "data-gd-toolbar-managed"; /** * Marks the root of a {@link UiToolbar}; composites use it to tell a managing toolbar from any other * `role="toolbar"` element. */ export declare const TOOLBAR_ROOT_ATTR = "data-gd-toolbar"; export interface IRovingFocusOptions { isDisabledFocusable: boolean; } /** * True while the element is still one of the container's eligible focus targets. */ export declare function isEligibleFocusable(container: HTMLElement, element: HTMLElement, options: IRovingFocusOptions): boolean; /** * True when the element sits in a subtree marked with {@link TOOLBAR_SKIP_ATTR} below the container. */ export declare function isSkipped(container: HTMLElement, element: HTMLElement): boolean; export declare function isEligible(element: HTMLElement, options: IRovingFocusOptions): boolean; export declare function getFocusableDescendants(container: HTMLElement): HTMLElement[]; export declare function getToolbarStops(container: HTMLElement, options: IRovingFocusOptions): HTMLElement[]; export declare function resolveStop(container: HTMLElement, element: Element | null): HTMLElement | null; export declare function getStopFocusTarget(stop: HTMLElement, remembered: HTMLElement | null, options: IRovingFocusOptions): HTMLElement | null; /** * Makes exactly one focusable descendant reachable with Tab and returns it. */ export declare function applyRovingTabIndex(container: HTMLElement, remembered: HTMLElement | null, options: IRovingFocusOptions): HTMLElement | null; export declare function isCaretAtEdge(target: EventTarget | null, direction: "ArrowLeft" | "ArrowRight"): boolean; /** * True for elements that use arrow, Home and End keys to move a caret or a value. */ export declare function isEditingTarget(target: EventTarget | null): boolean; /** * True when Alt, Ctrl or Meta is held. Those arrow combinations belong to the browser or the OS. */ export declare function hasSystemModifier(event: { altKey: boolean; ctrlKey: boolean; metaKey: boolean; }): boolean; //# sourceMappingURL=rovingFocusUtils.d.ts.map