import { FC, PropsWithChildren } from 'react'; import type { MenuProps } from 'antd'; import { ItemType } from 'antd/lib/menu/hooks/useItems'; declare type Children = ItemType & { label: any; } & { key: string; }; declare type ItemTypeProps = ItemType & { children: Children[]; }; export interface SideMenuProps extends Omit { onClick?: (item: Children) => boolean; items?: ItemTypeProps[]; instance?: string; defaultGraphNode?: Record; } declare const SideMenu: FC>; export default SideMenu;