export interface Coords { x: number; y: number; } export interface Dims { width: number; height: number; } export declare function isValidCoords(coords: Coords): boolean; export declare function isValidDims(dims: Dims): boolean; export declare function dist(a: Coords, b: Coords): number; export declare function areaDiff(a: Dims, b: Dims): number; export declare function getElementCoords(element: Element): Coords; export declare function getElementDims(element: Element): Dims; export declare function getNearestScrollAncestor(element: Element): Element; export declare function getDefaultScrollingElement(): Element; export declare function isDefaultScrollingElement(root: Element): boolean; export declare function getValidPortalRoot(root: Element): Element; export declare function getCombinedData(aCoords: Coords, aDims: Dims, bCoords: Coords, bDims: Dims): { coords: Coords; dims: Dims; }; export declare function fitsWithin(aDims: Dims, bDims: Dims): boolean; export declare function isWithinAt(aDims: Dims, bDims: Dims, aCoords?: Coords, bCoords?: Coords): boolean; export declare function getFocusableElements(root: Element, includeSelf?: boolean): HTMLElement[]; export declare function getEdgeFocusables(defaultElement: HTMLElement, container?: HTMLElement, includeSelf?: boolean): { start: HTMLElement; end: HTMLElement; }; export declare function isForeignTarget(root: Element, selector: string): boolean;