import { Disposable } from "../../../../../../base/common/lifecycle.js"; import { IHoverService } from "../../../../../../platform/hover/browser/hover.service.js"; import { IChatRendererContent, IChatTurnPillsPart } from "../../../common/model/chatViewModel.js"; import { ChatTreeItem } from "../../chat.js"; import { IChatResponseFileChangesService } from "../../chatResponseFileChangesService.service.js"; import { ChangesSummaryFileListPool } from "./chatChangesSummaryPart.js"; import { IChatContentPart, IChatContentPartRenderContext } from "./chatContentParts.js"; /** * Whether a turn's changed-files disclosure is expanded. It is kept by the * renderer and updated by the part, so a part rebuilt for the same turn * (e.g. once it is no longer the last turn) keeps its expansion. */ export interface IChatTurnPillsDisclosureState { open: boolean; } /** * Renders a single agent turn's changes as a checkpoint-style summary: a * `N files changed +ins -del` header, where the counts open the changes and the * rest of the header is a disclosure that expands to the list of changed files. */ export declare class ChatTurnPillsContentPart extends Disposable implements IChatContentPart { private readonly _content; private readonly _chatResponseFileChangesService; private readonly _hoverService; readonly domNode: HTMLElement; private readonly _diffs; constructor(_content: IChatTurnPillsPart, _context: IChatContentPartRenderContext, listPool: ChangesSummaryFileListPool, disclosureState: IChatTurnPillsDisclosureState, _chatResponseFileChangesService: IChatResponseFileChangesService, _hoverService: IHoverService); private _renderChangesHeader; private _renderChevron; private _openChanges; hasSameContent(other: IChatRendererContent, _followingContent: IChatRendererContent[], _element: ChatTreeItem): boolean; }