import { CancellationToken } from "../../../../base/common/cancellation.js"; import { Disposable } from "../../../../base/common/lifecycle.js"; import { IDefaultAccountService } from "../../../../platform/defaultAccount/common/defaultAccount.service.js"; import { IGitHubAccountClient } from "../../../../platform/github/common/account/account.js"; import { IWorkbenchGitHubService } from "../../../../workbench/services/github/common/githubService.service.js"; /** Retains the selected account's client and notifies models when its grant changes. */ export declare class GitHubApiClient extends Disposable { private readonly _gitHubService; private readonly _defaultAccountService; private readonly _clientStore; private readonly _onDidChange; readonly onDidChange: import("../../../../base/common/event.js").Event; private _signal; private _client; private _generation; get generation(): number; constructor(_gitHubService: IWorkbenchGitHubService, _defaultAccountService: IDefaultAccountService); get enterpriseHost(): string | undefined; authenticate(scopes: readonly string[], token: CancellationToken): Promise; withClient(task: (client: IGitHubAccountClient, signal: AbortSignal) => Promise, token?: CancellationToken): Promise; private acquireClient; private reset; }