import { CloseBehavior, MenuInstanceOptions, PositionOptions, Selection } from "./MenuInstance"; import { MenuItem } from "./MenuItem"; export declare class Menu { private active?; close(behavior?: CloseBehavior): Promise; /** * Shows a menu. * * It'll resolve with the selected item, but not before all the animations * finish. Note that this may break the user interaction chain, so if you * want to execute code that needs to originate with a user interaction, use * the {@link MenuInstanceOptions#onSelection} callback instead of awaiting * the returned promise. */ show(items: MenuItem[], { className, location, within, isDarkMode, maxItemsPerMenu, enableTranslate, onSelection, expandRight, }: MenuInstanceOptions & PositionOptions): Promise; } /** * A single instance that can be used to avoid more than one menu showing on screen at once. */ export declare const menu: Menu;