import React, { ReactNode } from 'react'; import { PopperProps, PopperChildrenProps } from 'react-popper'; export interface MenuButtonChildrenProps extends PopperChildrenProps { hideMenu(): void; } export interface MenuButtonProps extends Omit, 'children'> { className?: string; title: ReactNode; children(props: MenuButtonChildrenProps): ReactNode; } /** * * MenuButton is a simple dropdown component. This component relies primarily on [React Popper](https://github.com/popperjs/react-popper) Component. * * All the props and types are the same besides having added `hideMenu` function to the data that is returned to the children. * * Please note that in order for this component to function, the app must be wrapped by `AppWrapper` because it contains the `Manager` wrapping component required by Popper. * */ export declare const MenuButton: React.FC;