import { Disposable } from "../../../../base/common/lifecycle.js"; import type { ThemeIcon } from "../../../../base/common/themables.js"; import { IContextMenuService } from "../../../../platform/contextview/browser/contextView.service.js"; import { IHoverService } from "../../../../platform/hover/browser/hover.service.js"; export interface ISessionInputBannerAction { readonly id?: string; readonly label: string; /** Renders the action with the prominent button colors. */ readonly primary?: boolean; /** Alternative actions offered from a split-button dropdown. */ readonly dropdownActions?: readonly ISessionInputBannerAction[]; /** * Waits until the action can run. The primary button is disabled immediately * and the banner shows progress when this takes longer than one second. */ readonly waitUntilReady?: () => Promise; run(): void | Promise; } export interface ISessionInputBanner { /** Stable identity used to preserve the selected carousel item across updates. */ readonly id?: string; readonly icon: ThemeIcon; /** Use the orange accent (border + icon) reserved for CI failures. */ readonly accent: boolean; /** Text shown beside the icon and actions. */ readonly text: string; readonly ariaLabel: string; readonly actions: readonly ISessionInputBannerAction[]; readonly reference?: { readonly label: string; readonly hover: string; }; readonly dismissTooltip?: string; readonly focusAfterDismiss?: () => void; dismiss?(): void; } /** * A single, self-contained banner card rendered directly above the chat input. * Shows a leading icon, an ellipsized line of text, a floating right-aligned * button bar, and a dismiss (x) button. Purely presentational — all behavior is * provided by the {@link ISessionInputBanner} passed in. */ export declare class SessionInputBannerWidget extends Disposable { private readonly hoverService; private readonly contextMenuService; private readonly _hoverDelegate; readonly domNode: HTMLElement; private readonly _buttons; private readonly _showWorkingAnimation; private readonly _content; private _runningPrimaryAction; private _disposed; private _working; private _banners; private _activeIndex; private _previousButton; private _nextButton; private _dismissButton; constructor(banner: ISessionInputBanner | readonly ISessionInputBanner[], hoverService: IHoverService, contextMenuService: IContextMenuService); setBanners(banners: readonly ISessionInputBanner[]): void; private _render; private _captureFocus; private _restoreFocus; private _renderNavigation; private _navigationButtonOptions; private _move; private _buttonOptions; private _runAction; private _findAction; private _waitUntilReady; setWorking(working: boolean): void; private _setPrimaryButtonsEnabled; dispose(): void; }