UNPKG

905 BTypeScriptView Raw
1/// <reference types="react" />
2declare type Filter = (element: Element) => void;
3export declare function handleMouseUpByBlurring({ currentTarget, }: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>): void;
4export declare function nextFocusableNode(node: HTMLElement, filter?: Filter): HTMLElement | Element | null;
5export declare function focusNextFocusableNode(node: HTMLElement, filter?: Filter): boolean;
6export declare function findFirstKeyboardFocusableNode(element: HTMLElement, onlyDescendants?: boolean): HTMLElement | null;
7export declare function focusFirstKeyboardFocusableNode(element: HTMLElement, onlyDescendants?: boolean): boolean;
8export declare function findLastKeyboardFocusableNode(element: HTMLElement, onlyDescendants?: boolean): HTMLElement | null;
9export declare function focusLastKeyboardFocusableNode(element: HTMLElement, onlyDescendants?: boolean): boolean;
10export {};