import { IDisposable } from "../../../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../../../base/common/observable.js"; import { URI } from "../../../../../../base/common/uri.js"; import { MenuItemAction } from "../../../../../../platform/actions/common/actions.js"; import { IMenuService } from "../../../../../../platform/actions/common/actions.service.js"; import { IActionWidgetService } from "../../../../../../platform/actionWidget/browser/actionWidget.service.js"; import { ICommandService } from "../../../../../../platform/commands/common/commands.service.js"; import { IConfigurationService } from "../../../../../../platform/configuration/common/configuration.service.js"; import { IContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.service.js"; import { IKeybindingService } from "../../../../../../platform/keybinding/common/keybinding.service.js"; import { IProductService } from "../../../../../../platform/product/common/productService.service.js"; import { ITelemetryService } from "../../../../../../platform/telemetry/common/telemetry.service.js"; import { IChatAgentService } from "../../../common/participants/chatAgents.service.js"; import { IChatMode, IChatModes } from "../../../common/chatModes.js"; import { Target } from "../../../common/promptSyntax/promptTypes.js"; import { ChatInputPickerActionViewItem, IChatInputPickerOptions } from "./chatInputPickerActionItem.js"; import { IOpenerService } from "../../../../../../platform/opener/common/opener.service.js"; import { IWorkbenchAssignmentService } from "../../../../../services/assignment/common/assignmentService.service.js"; export interface IModePickerDelegate { readonly currentMode: IObservable; readonly currentChatModes: IObservable; readonly sessionResource: () => URI | undefined; readonly supportsAttachContext?: boolean; /** Direct mode-change callback for hosts without a registered IChatWidget (bypasses ToggleAgentModeActionId). */ readonly setMode?: (mode: IChatMode) => void; /** * When set, the mode picker will show custom agents whose target matches this value. * Custom agents without a target are always shown in all session types. If no agents match the target, shows a default "Agent" option. */ readonly customAgentTarget?: () => Target; } export declare function createAgentPickerInAttachContext(delegate: IModePickerDelegate, configurationService: IConfigurationService, telemetryService: ITelemetryService): IObservable; export declare class ModePickerActionItem extends ChatInputPickerActionViewItem { private readonly delegate; private readonly contextKeyService; private readonly menuService; private readonly _productService; constructor(action: MenuItemAction, delegate: IModePickerDelegate, pickerOptions: IChatInputPickerOptions, actionWidgetService: IActionWidgetService, chatAgentService: IChatAgentService, keybindingService: IKeybindingService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, menuService: IMenuService, commandService: ICommandService, _productService: IProductService, telemetryService: ITelemetryService, openerService: IOpenerService, assignmentService: IWorkbenchAssignmentService); private getModePickerActionBarActions; render(container: HTMLElement): void; get isConnected(): boolean; isFocused(): boolean; protected renderLabel(element: HTMLElement): IDisposable | null; } export declare function isModeConsideredBuiltIn(mode: IChatMode, productService: IProductService): boolean;