import * as React from "react"; import { Offset, FocusRingShowOpts, FocusRingAncestry, FocusRingStyleProperties, ThemeOptions } from "./FocusRingTypes"; export declare let ACTIVE_RING_CONTEXT_MANAGER: FocusRingContextManager | undefined; export declare class FocusRingContextManager { targetElement?: Element; targetAncestry?: FocusRingAncestry; boundingBox?: DOMRect; className?: string; offset: Offset | number; zIndex?: number; container: Element | null; themeOptions?: ThemeOptions; invalidate: () => void; setContainer(element: Element | null): void; setThemeOptions(themeOptions?: ThemeOptions): void; showElement(element: Element, opts?: FocusRingShowOpts): void; hide(): void; get visible(): boolean; /** * Return the full ancestry of the given element, including both the * element ancestors alongside the live computed styles object for * each element. */ private getElementAncestors; /** * To accomodate elements that use z-index to stylistically overlap elements * within a single container, this function will calculate the lowest z-index * needed to ensure that the focus ring appears at the top of that stacking * context. For elements with no stacking context between them and this focus * scope's container, no z-index will be applied to the ring. */ private getNextZIndexForAncestry; private getBorderRadius; private makePositionFromDOMRect; /** * Return the necessary computed styles for displaying a focus ring as * defined by the current state of this ring context. */ getStyle(): FocusRingStyleProperties; } declare const FocusRingContext: React.Context; export default FocusRingContext; //# sourceMappingURL=FocusRingContext.d.ts.map