import type { RefObject } from 'react'; import type { View } from 'react-native'; export interface AnchorPosition { top: number; left: number; width: number; height: number; } /** * Measures a `View` ref and returns its page-relative bounding rect. * * Pattern mirrors `src/components/Menu/Menu.tsx`. * * @param ref - A ref attached to the anchor View * @param open - Re-measures only when `open` transitions to true * @returns `{ top, left, width, height }` or `null` while un-measured */ export declare function useAnchorPosition(ref: RefObject, open: boolean): AnchorPosition | null; //# sourceMappingURL=useAnchorPosition.d.ts.map