import { IAction } from "../../../../../../base/common/actions.js"; import { IDisposable } from "../../../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../../../base/common/observable.js"; import { ActionWidgetDropdownActionViewItem } from "../../../../../../platform/actions/browser/actionWidgetDropdownActionViewItem.js"; import { IActionWidgetService } from "../../../../../../platform/actionWidget/browser/actionWidget.service.js"; import { IActionWidgetDropdownOptions } from "../../../../../../platform/actionWidget/browser/actionWidgetDropdown.js"; import { IActionListOptions } from "../../../../../../platform/actionWidget/browser/actionList.js"; import { IContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.service.js"; import { IKeybindingService } from "../../../../../../platform/keybinding/common/keybinding.service.js"; import { ITelemetryService } from "../../../../../../platform/telemetry/common/telemetry.service.js"; import { IChatExecuteActionContext } from "../../actions/chatExecuteActions.js"; export interface IChatInputPickerOptions { /** * Provides a fallback anchor element when the picker's own element * is not available in the DOM (e.g., when inside an overflow menu). */ readonly getOverflowAnchor?: () => HTMLElement | undefined; readonly actionContext?: IChatExecuteActionContext; readonly compact: IObservable; readonly minimal?: IObservable; readonly listOptions?: IActionListOptions; /** Context view layer used when the picker is hosted inside another context view. */ readonly contextViewLayer?: number; } export declare function withChatInputPickerMotion(listOptions: IActionListOptions | undefined): IActionListOptions; export declare function renderChatInputPickerSplit(container: HTMLElement, primaryButton?: HTMLElement, secondaryButton?: HTMLElement): { primaryButton: HTMLElement; secondaryButton: HTMLElement; }; export declare function trackChatInputPickerFocus(container: HTMLElement): IDisposable; /** * Base class for chat input picker action items (model picker, mode picker, session target picker). * Provides common anchor resolution logic for dropdown positioning. */ export declare abstract class ChatInputPickerActionViewItem extends ActionWidgetDropdownActionViewItem { protected readonly pickerOptions: IChatInputPickerOptions; private _externalAnchor; constructor(action: IAction, actionWidgetOptions: Omit, pickerOptions: IChatInputPickerOptions, actionWidgetService: IActionWidgetService, keybindingService: IKeybindingService, contextKeyService: IContextKeyService, telemetryService: ITelemetryService); /** * Returns the anchor element for the dropdown. * Falls back to the overflow anchor if this element is not in the DOM. */ protected getAnchorElement(): HTMLElement; show(anchor?: HTMLElement): void; render(container: HTMLElement): void; setFocusable(_focusable: boolean): void; blur(): void; protected updateEnabled(): void; private _updateTabIndex; }