import { StandardMouseEvent } from "../../../../base/browser/mouseEvent.js"; import { Disposable } from "../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../base/common/observable.js"; import { ICommandService } from "../../../../platform/commands/common/commands.service.js"; import { IContextMenuService } from "../../../../platform/contextview/browser/contextView.service.js"; import { IKeybindingService } from "../../../../platform/keybinding/common/keybinding.service.js"; import { IStorageService } from "../../../../platform/storage/common/storage.service.js"; /** Lets the user collapse individual pickers in the new-session options row to just their icon. */ export interface ISessionOptionsIconOnlyPickers { /** Ids of the pickers that show only their icon. */ readonly iconOnlyPickerIds: IObservable>; readonly showOptionsToggle: IObservable; /** Resolves the stable id of the picker that `element` renders, if it can collapse to its icon. */ getPickerId(element: HTMLElement): string | undefined; /** Shows the picker's context menu, which collapses it to its icon or shows its label again. */ showContextMenu(pickerId: string | undefined, anchor: StandardMouseEvent): void; } /** Remembers per-profile choices to collapse new-session pickers to their icon from their context menu. */ export declare class IconOnlySessionPickers extends Disposable implements ISessionOptionsIconOnlyPickers { /** Resolves pickers that are not hosted by a session picker toolbar, such as repository controls. */ private readonly _resolvePickerId; private readonly _storageService; private readonly _contextMenuService; private readonly _commandService; private readonly _keybindingService; private readonly _choices; readonly iconOnlyPickerIds: IObservable>; readonly showOptionsToggle: IObservable; constructor( /** Resolves pickers that are not hosted by a session picker toolbar, such as repository controls. */ _resolvePickerId: (element: HTMLElement) => string | undefined, _storageService: IStorageService, _contextMenuService: IContextMenuService, _commandService: ICommandService, _keybindingService: IKeybindingService); getPickerId(element: HTMLElement): string | undefined; setIconOnly(pickerId: string, iconOnly: boolean): void; showContextMenu(pickerId: string | undefined, anchor: StandardMouseEvent): void; }