import { CancellationToken } from "../../../../base/common/cancellation.js"; import { IObservable } from "../../../../base/common/observable.js"; import { Event } from "../../../../sessions/sessions.web.main.internal.js"; import { ChatEntitlement, IQuotas, IChatSentiment } from "./chatEntitlementService.js"; export declare const IChatEntitlementService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface IChatEntitlementService { _serviceBrand: undefined; readonly onDidChangeEntitlement: Event; readonly entitlement: ChatEntitlement; readonly entitlementObs: IObservable; readonly clientByokEnabled: boolean; readonly hasByokModels: boolean; readonly organisations: string[] | undefined; /** True for GitHub/Microsoft staff or members of an internal organisation. */ readonly isInternal: boolean; readonly sku: string | undefined; readonly copilotTrackingId: string | undefined; readonly onDidChangeQuotaExceeded: Event; readonly onDidChangeQuotaRemaining: Event; readonly onDidChangeUsageBasedBilling: Event; readonly quotas: IQuotas; readonly onDidChangeSentiment: Event; readonly sentiment: IChatSentiment; readonly sentimentObs: IObservable; readonly onDidChangeAnonymous: Event; readonly anonymous: boolean; readonly anonymousObs: IObservable; acceptQuotas(quotas: IQuotas): void; /** * Clear all quota state. */ clearQuotas(): void; markAnonymousRateLimited(): void; /** * Mark the chat setup flow as completed. */ markSetupCompleted(): void; /** * Force the hidden state on or off, overriding the normal entitlement logic. * Used by the account policy gate to hide all AI features when the gate is * active and unsatisfied. */ setForceHidden(hidden: boolean): void; update(token: CancellationToken): Promise; }