import type { Placement } from "@floating-ui/react-native"; import React from "react"; import { View, ViewProps } from "react-native"; export type MenuProps = { /** * A reference to the element that the menu should appear around. */ anchorEl: React.MutableRefObject; /** * A boolean value indicating whether or not the menu should be open. */ open: boolean; /** * A callback method invoked when a user closes the menu. */ onClose: () => void; /** * The positioning of the menu around the anchor element. */ placement?: Placement; }; export type MenuContextType = { /** * A callback method invokable from any part of the menu. Calling this should close the menu. */ close: () => void; }; export declare const MenuContext: React.Context; export declare const Menu: ({ anchorEl, open, onClose, placement, children, ...rest }: React.PropsWithChildren) => false | React.JSX.Element;