import { Disposable } from "../../../../base/common/lifecycle.js"; import { IAction } from "../../../../base/common/actions.js"; import { type ICodexAccountInfo, type ICodexProfileImageReference } from "../../../../platform/agentHost/common/codexAccount.js"; import { IAgentHostService } from "../../../../platform/agentHost/common/agentService.service.js"; import { IOpenerService } from "../../../../platform/opener/common/opener.service.js"; import { ICodexAccountService } from "./codexAccountService.service.js"; interface ICodexAccountVisibilityConfiguration { getValue(section: string): T | undefined; } export interface ICodexAccountViewInfo extends ICodexAccountInfo { readonly profileImageDataUri?: string; } export declare function hasSignedInCodexChatGPTAccount(account: ICodexAccountInfo, visible?: boolean): boolean; /** * An unknown account may already be signed in. Let explicit Codex selection * resolve it without requiring GitHub first; this is not proof of sign-in. */ export declare function canInitializeCodexWithoutGitHub(account: Pick): boolean; export declare function getCodexAccountPlanName(account: Pick): string; export declare function shouldShowCodexAccount(configurationService: ICodexAccountVisibilityConfiguration, isSessionsWindow: boolean): boolean; export declare function createCodexAccountMenuActions(service: ICodexAccountService, visible?: boolean): IAction[]; export declare function openCodexAuthUrl(openerService: Pick, authUrl: string): Promise; export declare function readCodexProfileImageDataUri(connection: Pick, reference: ICodexProfileImageReference): Promise; export declare class CodexAccountService extends Disposable implements ICodexAccountService { private readonly _agentHostService; private readonly _openerService; readonly _serviceBrand: undefined; readonly agent: "codex"; private readonly _onDidChangeAccount; readonly onDidChangeAccount: import("../../../../base/common/event.js").Event; private readonly _pendingSignInRequests; private _rootAccount; private _account; private _profileImageKey; private _profileImageRequest; get account(): ICodexAccountViewInfo; constructor(_agentHostService: IAgentHostService, _openerService: IOpenerService); signIn(): void; signOut(): void; private _updateAccount; private _updateProfileImage; } export {};