import React from 'react'; import { ReactNode } from "react"; import CSS from 'csstype'; declare type CenterMenuProps = { className?: string; style?: CSS.Properties; headerClassName?: string; headerStyle?: CSS.Properties; bounderStyle?: CSS.Properties; }; declare type ContextMenuProps = { bounderStyle?: CSS.Properties; style?: CSS.Properties; }; declare function createMenuManager(): { openCenterMenu: (component: ReactNode, header?: string | undefined, props?: CenterMenuProps) => void; closeCenterMenu: () => void; openContextMenu: (e: React.MouseEvent | MouseEvent, component: ReactNode, props?: ContextMenuProps) => void; closeContextMenu: () => void; Menus: ({ centerMenuProps, contextMenuProps }: { centerMenuProps?: CenterMenuProps | undefined; contextMenuProps?: ContextMenuProps | undefined; }) => JSX.Element; }; export default createMenuManager;