import { ICheckableMenuItemBuilder } from "./checkable-menu.builder"; import { IMenuItemBuilder } from "./menu-item.builder"; /** * Represents a menu and enables to add new items to it */ export declare abstract class IMenuBuilder { constructor(); /** * Gets the list of existing items of associated menu or subitems of an item * @returns Existing menu item names */ get itemNames(): string[]; /** * Gets count of menu items */ get count(): number; /** * Adds a new separator to the associated menu * @param index The index to put the new item at */ addSeparator(index: number): void; /** * Adds a new item to the associated menu * @param name Item's internal name * @param index The index to put the new item at */ addItem(name: string, index: number): IMenuItemBuilder; /** * Adds a new checkable item to the associated menu * @param name Item's internal name * @param index The index to put the new item at */ addCheckableItem(name: string, index: number): ICheckableMenuItemBuilder; /** * Replaces the item to the associated menu * @param name Item's internal name */ replaceItem(name: string): IMenuItemBuilder; /** * Removes the item with the specified name * @param name Item's internal name */ removeItem(name: string): void; /** * Gets the item * @param name Item's internal name */ getItem(name: string): IMenuBuilder; }