import { IAction } from "../../../../base/common/actions.js"; import { ResolvedKeybinding } from "../../../../base/common/keybindings.js"; import { Disposable } from "../../../../base/common/lifecycle.js"; import { MenuId } from "../../../../platform/actions/common/actions.js"; import { IMenuService } from "../../../../platform/actions/common/actions.service.js"; import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js"; import { IContextMenuService } from "../../../../platform/contextview/browser/contextView.service.js"; import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js"; import { IKeybindingService } from "../../../../platform/keybinding/common/keybinding.service.js"; export interface IEditorAddTabControlOptions { /** * Element before which the control is inserted. Appended to the parent when omitted. */ readonly before?: HTMLElement; /** * Resolves keybindings shown in the dropdown. Defaults to a lookup in the given context key service. */ readonly keybindingProvider?: (action: IAction) => ResolvedKeybinding | undefined; } /** * The "Add Tab" (`+`) dropdown that lists the actions of a contributed menu. * The control element carries the `hidden` class while the menu has no actions. */ export declare class EditorAddTabControl extends Disposable { readonly element: HTMLElement; private readonly _onDidChangeVisibility; readonly onDidChangeVisibility: import("../../../../base/common/event.js").Event; get visible(): boolean; constructor(parent: HTMLElement, menuId: MenuId, contextKeyService: IContextKeyService, options: IEditorAddTabControlOptions | undefined, menuService: IMenuService, contextMenuService: IContextMenuService, keybindingService: IKeybindingService, instantiationService: IInstantiationService); }