import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri"; import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service"; import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service"; import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service"; import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service"; import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service"; import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service"; import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service"; import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service"; import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service"; import { IViewPaneOptions, ViewPane } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/views/viewPane"; import { IViewDescriptorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views.service"; import { ILifecycleService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service"; import { IChatViewTitleActionContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatActions"; import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service"; import { IChatModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel"; import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service"; import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service"; import { AgentSessionsControl } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl"; import { ChatWidget } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatWidget"; import { IViewWelcomeDelegate } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewWelcomeController"; import { IChatViewsWelcomeDescriptor } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome"; import { IWorkbenchLayoutService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/layout/browser/layoutService.service"; import { AgentSessionsViewerOrientation } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions"; import { IProgressService } from "@codingame/monaco-vscode-api/vscode/vs/platform/progress/common/progress.service"; import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service"; import { IActivityService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/activity/common/activity.service"; import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service"; import { IAgentSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel"; import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service"; import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service"; import { IMicCaptureService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/micCaptureService.service"; import { ITtsPlaybackService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/ttsPlaybackService.service"; import { IVoiceSessionController } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/voiceClient/voiceSessionController.service"; import { IAgentTitleBarStatusService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusService.service"; import { IVoicePlaybackService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/voicePlaybackService.service"; import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service"; export declare class ChatViewPane extends ViewPane implements IViewWelcomeDelegate { private readonly storageService; private readonly chatService; private readonly chatAgentService; private readonly logService; private readonly notificationService; private readonly layoutService; private readonly chatSessionsService; private readonly telemetryService; private readonly progressService; private readonly agentSessionsService; private readonly chatEntitlementService; private readonly commandService; private readonly activityService; private readonly hostService; private readonly micCaptureService; private readonly ttsPlaybackService; private readonly voiceSessionController; private readonly chatWidgetService; private readonly memento; private readonly viewState; private viewPaneContainer; private readonly chatViewLocationContext; private lastDimensions; private readonly lastDimensionsPerOrientation; private welcomeController; private restoringSession; private readonly loadSessionCts; private readonly modelRef; private readonly activityBadge; private readonly _currentSessionResource; constructor(options: IViewPaneOptions, keybindingService2: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, hoverService: IHoverService, storageService: IStorageService, chatService: IChatService, chatAgentService: IChatAgentService, logService: ILogService, notificationService: INotificationService, layoutService: IWorkbenchLayoutService, chatSessionsService: IChatSessionsService, telemetryService: ITelemetryService, lifecycleService: ILifecycleService, progressService: IProgressService, agentSessionsService: IAgentSessionsService, chatEntitlementService: IChatEntitlementService, commandService: ICommandService, activityService: IActivityService, hostService: IHostService, micCaptureService: IMicCaptureService, ttsPlaybackService: ITtsPlaybackService, voiceSessionController: IVoiceSessionController, chatWidgetService: IChatWidgetService, _agentTitleBarStatusService: IAgentTitleBarStatusService, _voicePlaybackService: IVoicePlaybackService, _workbenchEnvironmentService: IWorkbenchEnvironmentService); private updateContextKeys; private getViewPositionAndLocation; private getSessionHoverPosition; private updateViewPaneClasses; private registerListeners; private onDidChangeAgents; private getTransferredOrPersistedSessionInfo; protected renderBody(parent: HTMLElement): void; private createControls; private _voiceBarContainer; private readonly _voiceBarDisposables; private _updateVoiceBar; private _setupVoiceTranscriptOverlay; private static readonly SESSIONS_SIDEBAR_MIN_WIDTH; private static readonly SESSIONS_SIDEBAR_SNAP_THRESHOLD; private static readonly SESSIONS_SIDEBAR_DEFAULT_WIDTH; private static readonly CHAT_WIDGET_DEFAULT_WIDTH; private static readonly SESSIONS_SIDEBAR_VIEW_MIN_WIDTH; private sessionsContainer; private sessionsTitleContainer; private sessionsTitle; private sessionsNewButtonContainer; private sessionsControlContainer; private sessionsControl; get agentSessionsControl(): AgentSessionsControl | undefined; private sessionsViewerVisible; private sessionsViewerOrientation; private sessionsViewerOrientationConfiguration; private sessionsViewerOrientationContext; private sessionsViewerVisibilityContext; private sessionsViewerPositionContext; private sessionsViewerSidebarWidth; private sessionsViewerSash; private readonly sessionsViewerSashDisposables; private createSessionsControl; getSessionsViewerOrientation(): AgentSessionsViewerOrientation; updateConfiguredSessionsViewerOrientation(orientation: "stacked" | "sideBySide" | unknown): void; private doUpdateConfiguredSessionsViewerOrientation; private updateSessionsControlVisibility; getFocusedSessions(): IAgentSession[]; private static readonly MIN_CHAT_WIDGET_HEIGHT; private _widget; get widget(): ChatWidget; private titleControl; private createChatControl; private createChatTitleControl; private registerControlsListeners; private setupContextMenu; private applyModel; private _applyModel; /** * Force-start a new local chat session in the view, bypassing the * default-provider override applied by `showModel()`. Used by the * picker when the user explicitly selects "Local". */ startNewLocalSession(): Promise; /** * When the experimental `chat.editor.defaultProvider` setting selects a * provider other than local and that contribution is registered, return a * new session reference for it instead of the built-in local provider. * Returns `undefined` to fall back to `startNewLocalSession`. */ private acquireDefaultNewSession; private acquireTransferredOrPersistedSession; private shouldSkipRestoredLocalSession; private showModel; private updateWidgetLockState; private clear; loadSession(sessionResource: URI): Promise; focus(): void; focusInput(): void; focusSessions(): boolean; private layoutingBody; private relayout; protected layoutBody(height: number, width: number): void; private doLayoutBody; private layoutSessionsControl; private computeEffectiveSideBySideSessionsSidebarWidth; getLastDimensions(orientation: AgentSessionsViewerOrientation): { height: number; width: number; } | undefined; private createSessionsViewerSash; saveState(): void; private updateViewState; shouldShowWelcome(): boolean; getMatchingWelcomeView(): IChatViewsWelcomeDescriptor | undefined; getActionsContext(): IChatViewTitleActionContext | undefined; }