import { Optional } from '@ephox/katamari'; import { SugarElement } from '../node/SugarElement'; import * as SugarShadowDom from '../node/SugarShadowDom'; type RootNode = SugarShadowDom.RootNode; declare const focus: (element: SugarElement, preventScroll?: boolean) => void; declare const blur: (element: SugarElement) => void; declare const hasFocus: (element: SugarElement) => boolean; declare const active: (root?: RootNode) => Optional>; /** Focus the specified element, unless one of its descendents already has focus. */ declare const focusInside: (element: SugarElement) => void; /** * Return the descendant element that has focus. * Use instead of SelectorFind.descendant(container, ':focus') * because the :focus selector relies on keyboard focus. */ declare const search: (element: SugarElement) => Optional>; export { hasFocus, focus, blur, active, search, focusInside }; //# sourceMappingURL=Focus.d.ts.map