import { Disposable } from "../../../../../../base/common/lifecycle.js"; import { type IObservable } from "../../../../../../base/common/observable.js"; import { IMenuService } from "../../../../../../platform/actions/common/actions.service.js"; import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js"; import { IContextKeyService } from "../../../../../../platform/contextkey/common/contextkey.service.js"; import type { IChatWidget } from "../../chat.js"; export interface IChatContextUsagePromptTokenDetail { category: string; label: string; percentageOfPrompt: number; } export interface IChatContextUsageData { usedTokens: number; completionTokens: number; totalContextWindow: number; percentage: number; outputBufferPercentage?: number; promptTokenDetails?: readonly IChatContextUsagePromptTokenDetail[]; sessionCost?: number; } /** * Detailed widget that shows context usage breakdown. * Displayed when the user clicks on the ChatContextUsageIcon. */ export declare class ChatContextUsageDetails extends Disposable { private _chatWidget; private readonly _dataObservable; private readonly instantiationService; private readonly menuService; private readonly contextKeyService; readonly domNode: HTMLElement; private readonly sessionCostSection; private readonly sessionCostValue; private readonly quotaItem; private readonly percentageLabel; private readonly tokenCountLabel; private readonly progressFill; private readonly outputBufferFill; private readonly outputBufferLegend; private readonly tokenDetailsContainer; private readonly warningMessage; private readonly actionsSection; constructor(_chatWidget: IChatWidget | undefined, _dataObservable: IObservable, instantiationService: IInstantiationService, menuService: IMenuService, contextKeyService: IContextKeyService); setChatWidget(widget: IChatWidget): void; private withActionContext; private _render; private formatTokenCount; private renderTokenDetails; focus(): void; }