declare namespace ContextMenu {
  interface IContextMenuComponent {
    // 隐藏
    Hide: () => void;
  }

  // 菜单项的每一个 item
  interface IMenuItem {
    text: (() => string) | string;
    icon?: string;
    hidden?: (() => boolean) | boolean;
    disable?: (() => Promise<boolean> | boolean) | boolean;
    callback?: (inputVal?: number | string) => void;
    submenu?: IMenuItem[][];
  }

  // 菜单项分组
  type MenuGroup = IMenuItem[];
}
