import { IListOptions } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/listWidget"; import { Event } from "@codingame/monaco-vscode-api/vscode/vs/base/common/event"; import { IMarkdownString } from "@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent"; import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { MenuId } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions"; import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service"; import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service"; import { WorkbenchList } from "@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService"; import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service"; import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service"; import { ModifiedFileEntryState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEditingService"; import { IChatContentReference, IChatWarningMessage } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService"; import { IChatRendererContent } from "@codingame/monaco-vscode-9911aec2-e4dd-5483-8369-9d695cc70d8a-common/vscode/vs/workbench/contrib/chat/common/chatViewModel"; import { ChatTreeItem } from "@codingame/monaco-vscode-9911aec2-e4dd-5483-8369-9d695cc70d8a-common/vscode/vs/workbench/contrib/chat/browser/chat"; import { ChatCollapsibleContentPart } from "./chatCollapsibleContentPart.js"; import { IDisposableReference } from "./chatCollections.js"; import { IChatContentPartRenderContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts"; export interface IChatReferenceListItem extends IChatContentReference { title?: string; description?: string; state?: ModifiedFileEntryState; excluded?: boolean; } export type IChatCollapsibleListItem = IChatReferenceListItem | IChatWarningMessage; export declare class ChatCollapsibleListContentPart extends ChatCollapsibleContentPart { private readonly data; private readonly contentReferencesListPool; private readonly openerService; private readonly menuService; private readonly instantiationService; private readonly contextMenuService; constructor(data: ReadonlyArray, labelOverride: IMarkdownString | string | undefined, context: IChatContentPartRenderContext, contentReferencesListPool: CollapsibleListPool, openerService: IOpenerService, menuService: IMenuService, instantiationService: IInstantiationService, contextMenuService: IContextMenuService); protected initContent(): HTMLElement; hasSameContent(other: IChatRendererContent, followingContent: IChatRendererContent[], element: ChatTreeItem): boolean; } export interface IChatUsedReferencesListOptions { expandedWhenEmptyResponse?: boolean; } export declare class ChatUsedReferencesListContentPart extends ChatCollapsibleListContentPart { private readonly options; constructor(data: ReadonlyArray, labelOverride: IMarkdownString | string | undefined, context: IChatContentPartRenderContext, contentReferencesListPool: CollapsibleListPool, options: IChatUsedReferencesListOptions, openerService: IOpenerService, menuService: IMenuService, instantiationService: IInstantiationService, contextMenuService: IContextMenuService); protected isExpanded(): boolean; protected setExpanded(value: boolean): void; } export declare class CollapsibleListPool extends Disposable { private _onDidChangeVisibility; private readonly menuId; private readonly listOptions; private readonly instantiationService; private readonly themeService; private readonly labelService; private _pool; get inUse(): ReadonlySet>; constructor(_onDidChangeVisibility: Event, menuId: MenuId | undefined, listOptions: IListOptions | undefined, instantiationService: IInstantiationService, themeService: IThemeService, labelService: ILabelService); private listFactory; get(): IDisposableReference>; }