import { RefObject } from 'react'; /** * A util hook to get element positioning. * * @param elementRef as an element ref for it's position * @returns [x, y] * @author Taimoor Khan * @remarks */ /** End file docs */ type PositionRef = { offsetLeft: 0 | null; offsetRight: 0 | null; offsetTop: 0 | null; offsetBottom: 0 | null; }; type StateX = { xLeft: 0 | null; xRight: 0 | null; }; type StateY = { yTop: 0 | null; yBottom: 0 | null; }; declare const usePosition: (elementRef: RefObject) => [StateX, StateY]; export { usePosition };