import React from 'react'; import { View, LayoutChangeEvent } from 'react-native'; export interface ElementOffset { left: number; top: number; } export interface UseElementOffsetResult { offset: ElementOffset; /** Imperative re-measure (e.g. on first pointer-down). */ measure: () => void; /** Attach to the measured View so layout changes trigger a re-measure. */ onLayout: (e: LayoutChangeEvent) => void; ref: React.RefObject; } export declare function useElementOffset(): UseElementOffsetResult;