import { ThemeIcon } from "../../base/common/themables.js"; import { URI } from "../../base/common/uri.js"; import { ChatEntitlement, IChatSentiment, IQuotaSnapshot } from "../../workbench/services/chat/common/chatEntitlementService.js"; import { IDefaultAccountService } from "../../platform/defaultAccount/common/defaultAccount.service.js"; import { IAuthenticationService } from "../../workbench/services/authentication/common/authentication.service.js"; export interface IResolvedAccountInfo { readonly accountName: string; readonly accountProviderId: string; readonly accountProviderLabel: string; /** * The icon (avatar) supplied by the authentication provider for this * account, if any. */ readonly accountIcon?: URI; } /** * Resolves the current account info by trying the default account service * first, then falling back to raw GitHub sessions from the authentication * service. The fallback covers the window between session creation and * {@link IDefaultAccountService} initialization. */ export declare function resolveAccountInfo(defaultAccountService: IDefaultAccountService, authenticationService: IAuthenticationService): Promise; export type AccountTitleBarStateSource = "account" | "copilot"; export type AccountTitleBarStateKind = "default" | "accent" | "warning" | "prominent"; export interface IAccountTitleBarStateContext { readonly isAccountLoading: boolean; readonly accountName?: string; readonly accountProviderLabel?: string; readonly entitlement: ChatEntitlement; readonly sentiment: IChatSentiment; readonly quotas: { readonly chat?: IQuotaSnapshot; readonly completions?: IQuotaSnapshot; }; } export interface IAccountTitleBarState { readonly source: AccountTitleBarStateSource; readonly kind: AccountTitleBarStateKind; readonly icon: ThemeIcon; readonly label: string; readonly ariaLabel: string; readonly badge?: string; readonly dotBadge?: "warning" | "error"; readonly revealLabelOnHover?: boolean; } export declare function getAccountProfileImageUrl(accountProviderId: string | undefined, accountName: string | undefined, accountIcon?: URI): string | undefined; export declare function getAccountTitleBarBadgeKey(state: IAccountTitleBarState): string | undefined; export declare function getAccountTitleBarState(context: IAccountTitleBarStateContext): IAccountTitleBarState;