import { Disposable } from "../../../../base/common/lifecycle.js"; import { Event } from "../../../../base/common/event.js"; import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js"; import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js"; import { IMenuService } from "../../../../platform/actions/common/actions.service.js"; import { ICommandService } from "../../../../platform/commands/common/commands.service.js"; import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js"; import { IDefaultAccountService } from "../../../../platform/defaultAccount/common/defaultAccount.service.js"; import { IAuthenticationService } from "../../../../workbench/services/authentication/common/authentication.service.js"; import { ISessionsService } from "../../../services/sessions/browser/sessionsService.service.js"; import { ChatEntitlementService } from "../../../../workbench/services/chat/common/chatEntitlementService.js"; import { IChatDashboardService } from "../../chatDashboardService.service.js"; import { IHoverService } from "../../../../platform/hover/browser/hover.service.js"; /** * Mobile titlebar — prepended above the workbench grid on phone viewports * in place of the desktop titlebar. * * Layout (contextual right slot): * * - **In a chat session** → `[toggle sidebar] [session title] [changes pill] [+]` * - **Welcome / new session** → `[toggle sidebar] [host widget | title] [account]` * * The center slot switches content based on whether the sessions welcome * (home/empty) screen is visible: * * - **Welcome hidden** → shows the active session title (live, from * {@link ISessionsService.activeSession}). * - **Welcome visible** → shows whatever is contributed to the * {@link Menus.MobileTitleBarCenter} menu. On web, the host filter * contribution appends its host dropdown + connection button there. * * The switch is driven entirely by the menu: when the toolbar has no * items the title is shown; as soon as it has items the title is hidden * and the toolbar fills the slot. * * The right slot swaps between the new-session (+) button (in a chat) * and the account indicator (on welcome / new session). The account * indicator shows the user's avatar or a person icon with an optional * dot badge for quota/status warnings. Tapping it opens a panel with * account info, copilot status dashboard, and sign-in/sign-out actions. */ export declare class MobileTitlebarPart extends Disposable { private readonly sessionsService; private readonly contextKeyService; private readonly defaultAccountService; private readonly authenticationService; private readonly chatEntitlementService; private readonly menuService; private readonly chatDashboardService; private readonly commandService; private readonly configurationService; readonly element: HTMLElement; private readonly sessionTitleElement; private readonly actionsContainer; private readonly centerToolbar; private readonly _onDidClickHamburger; readonly onDidClickHamburger: Event; private readonly _onDidClickNewSession; readonly onDidClickNewSession: Event; private readonly _onDidClickTitle; readonly onDidClickTitle: Event; private readonly accountButton; private readonly accountAvatarElement; private readonly accountIconElement; private readonly accountBadgeElement; private accountName; private accountProviderId; private accountProviderLabel; private accountIcon; private isAccountLoading; private accountRequestCounter; private avatarRequestCounter; private currentAvatarUrl; private loadedAvatarUrl; private isAccountMenuVisible; private lastBadgeKey; private dismissedBadgeKey; private readonly accountPanelDisposable; private readonly avatarLoadDisposable; private readonly copilotDashboardStore; private latestChanges; constructor(parent: HTMLElement, instantiationService: IInstantiationService, sessionsService: ISessionsService, contextKeyService: IContextKeyService, defaultAccountService: IDefaultAccountService, authenticationService: IAuthenticationService, chatEntitlementService: ChatEntitlementService, menuService: IMenuService, chatDashboardService: IChatDashboardService, commandService: ICommandService, configurationService: IConfigurationService, hoverService: IHoverService); focus(): void; /** * Explicitly set the title shown in the center slot. Called only when * overriding the live session title (tests, placeholders). The live * subscription will overwrite this on the next session change. */ setTitle(title: string): void; /** * Tap handler for the changes pill. Opens the dedicated mobile * Changes overlay (a master list with file icons + add/remove * counts) via {@link MOBILE_OPEN_CHANGES_VIEW_COMMAND_ID}. The * overlay's own row taps fan out into per-file diff views with * prev/next navigation. * * The list overlay handles its own single-file shortcut, so the * caller just dispatches the command unconditionally. */ private showChangesPicker; private refreshAccount; private renderAccountState; private refreshAvatar; private showAccountPanel; private getSheetActions; private getActionIcon; }