/** * Copied from chakra-ui, license MIT * Accessed 2021-12-26, commit July 25th, 2021 * See also: https://github.com/chakra-ui/chakra-ui/blob/69b7ef1/packages/utils/src/focus.ts */ import { FocusableElement, isActiveElement } from "./tabbable"; export interface ExtendedFocusOptions extends FocusOptions { /** * Function that determines if the element is the active element */ isActive?: typeof isActiveElement; /** * If true, the element will be focused in the next tick */ nextTick?: boolean; /** * If true and element is an input element, the input's text will be selected */ selectTextIfInput?: boolean; } export declare function focus(element: FocusableElement | null, options?: ExtendedFocusOptions): number;