import { PropsWithChildren, ReactNode } from "react"; import { POSITION } from "@dreipol/t3-ui"; export declare type MenuProps = PropsWithChildren<{ /** * Custom icon */ icon?: ReactNode; /** * Custom trigger. WHen this is set, you are responsible to control the state of the menu */ trigger?: ReactNode; /** * Set menu open/close */ open?: boolean; /** * Handle close event */ onClose?: () => void; /** * Custom anchor element */ anchor?: HTMLElement | null; /** * Custom css class name */ className?: string; anchorPosition?: POSITION; }>; /** * Simple wrapper for the MUI Menu component adding some basic logic to avoid repetition */ export declare const Menu: ({ children, icon, trigger, onClose, anchor, className, open, anchorPosition }: MenuProps) => JSX.Element;