import { IListOptions } from "../../../../../../base/browser/ui/list/listWidget.js"; import { Event } from "../../../../../../base/common/event.js"; import { IMarkdownString } from "../../../../../../base/common/htmlContent.js"; import { Disposable, IDisposable } from "../../../../../../base/common/lifecycle.js"; import { MenuId } from "../../../../../../platform/actions/common/actions.js"; import { IMenuService } from "../../../../../../platform/actions/common/actions.service.js"; import { IContextMenuService } from "../../../../../../platform/contextview/browser/contextView.service.js"; import { IInstantiationService } from "../../../../../../platform/instantiation/common/instantiation.js"; import { ILabelService } from "../../../../../../platform/label/common/label.service.js"; import { WorkbenchList } from "../../../../../../platform/list/browser/listService.js"; import { IOpenerService } from "../../../../../../platform/opener/common/opener.service.js"; import { IThemeService } from "../../../../../../platform/theme/common/themeService.service.js"; import { ModifiedFileEntryState } from "../../../common/editing/chatEditingService.js"; import { IChatContentReference, IChatWarningMessage } from "../../../common/chatService/chatService.js"; import { IChatRendererContent } from "../../../common/model/chatViewModel.js"; import { ChatTreeItem } from "../../chat.js"; import { ChatCollapsibleContentPart } from "./chatCollapsibleContentPart.js"; import { IDisposableReference } from "./chatCollections.js"; import { IChatContentPartRenderContext } from "./chatContentParts.js"; import { IHoverService } from "../../../../../../platform/hover/browser/hover.service.js"; import { IConfigurationService } from "../../../../../../platform/configuration/common/configuration.service.js"; import { ITelemetryService } from "../../../../../../platform/telemetry/common/telemetry.service.js"; export interface IChatReferenceListItem extends IChatContentReference { title?: string; description?: string; state?: ModifiedFileEntryState; excluded?: boolean; showModifiedState?: 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, hoverMessage: IMarkdownString | undefined, openerService: IOpenerService, menuService: IMenuService, instantiationService: IInstantiationService, contextMenuService: IContextMenuService, hoverService: IHoverService, configurationService: IConfigurationService, telemetryService: ITelemetryService); protected get collapsibleKind(): string; 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, hoverService: IHoverService, configurationService: IConfigurationService, telemetryService: ITelemetryService); protected isExpanded(): boolean; protected setExpanded(value: boolean): void; } interface ICollapsibleListWrapper extends IDisposable { list: WorkbenchList; } 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>; clear(): void; } export {};