import { IDragAndDropData } from "../../../../base/browser/dnd.js"; import { ListViewTargetSector } from "../../../../base/browser/ui/list/listView.js"; import { ITreeDragAndDrop, ITreeDragOverReaction } from "../../../../base/browser/ui/tree/tree.js"; import { ActionRunner, IAction } from "../../../../base/common/actions.js"; import { Event } from "../../../../base/common/event.js"; import { IMarkdownString } from "../../../../base/common/htmlContent.js"; import { Disposable } from "../../../../base/common/lifecycle.js"; import { ICommandService } from "../../../../platform/commands/common/commands.service.js"; import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js"; import { RawContextKey } from "../../../../platform/contextkey/common/contextkey.js"; import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js"; import { IContextMenuService } from "../../../../platform/contextview/browser/contextView.service.js"; import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js"; import { IKeybindingService } from "../../../../platform/keybinding/common/keybinding.service.js"; import { ILabelService } from "../../../../platform/label/common/label.service.js"; import { ILogService } from "../../../../platform/log/common/log.service.js"; import { INotificationService } from "../../../../platform/notification/common/notification.service.js"; import { IOpenerService } from "../../../../platform/opener/common/opener.service.js"; import { IProgressService } from "../../../../platform/progress/common/progress.service.js"; import { ITelemetryService } from "../../../../platform/telemetry/common/telemetry.service.js"; import { IThemeService } from "../../../../platform/theme/common/themeService.service.js"; import { ViewPane } from "./viewPane.js"; import { IViewletViewOptions } from "./viewsViewlet.js"; import { ITreeItem, ITreeView, ITreeViewDataProvider, ITreeViewDragAndDropController, IViewBadge, TreeViewItemHandleArg, TreeViewPaneHandleArg, ViewContainer, ViewContainerLocation } from "../../../common/views.js"; import { IViewDescriptorService } from "../../../common/views.service.js"; import { IActivityService } from "../../../services/activity/common/activity.service.js"; import { IExtensionService } from "../../../services/extensions/common/extensions.service.js"; import { IHoverService } from "../../../../platform/hover/browser/hover.service.js"; import { ITreeViewsDnDService } from "../../../../editor/common/services/treeViewsDndService.service.js"; import { IMarkdownRendererService } from "../../../../platform/markdown/browser/markdownRenderer.service.js"; import { IAccessibleViewInformationService } from "../../../services/accessibility/common/accessibleViewInformationService.service.js"; export declare class TreeViewPane extends ViewPane { protected readonly treeView: ITreeView; private _container; private _actionRunner; constructor(options: IViewletViewOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, notificationService: INotificationService, hoverService: IHoverService, accessibleViewService: IAccessibleViewInformationService); focus(): void; protected renderBody(container: HTMLElement): void; shouldShowWelcome(): boolean; protected layoutBody(height: number, width: number): void; getOptimalWidth(): number; protected renderTreeView(container: HTMLElement): void; protected layoutTreeView(height: number, width: number): void; private updateTreeVisibility; getActionRunner(): MultipleSelectionActionRunner; getActionsContext(): TreeViewPaneHandleArg; } export declare const RawCustomTreeViewContextKey: RawContextKey; declare abstract class AbstractTreeView extends Disposable implements ITreeView { readonly id: string; private _title; private readonly themeService; private readonly instantiationService; private readonly commandService; private readonly configurationService; protected readonly progressService: IProgressService; private readonly contextMenuService; private readonly keybindingService; private readonly notificationService; private readonly viewDescriptorService; private readonly hoverService; private readonly contextKeyService; private readonly activityService; private readonly logService; private readonly openerService; private readonly markdownRendererService; private isVisible; private _hasIconForParentNode; private _hasIconForLeafNode; private collapseAllContextKey; private collapseAllContext; private collapseAllToggleContextKey; private collapseAllToggleContext; private refreshContextKey; private refreshContext; private focused; private domNode; private treeContainer; private _messageValue; private _canSelectMany; private _manuallyManageCheckboxes; private messageElement; private tree; private treeLabels; private treeViewDnd; private _container; private root; private elementsToRefresh; private lastSelection; private lastActive; private readonly _onDidExpandItem; get onDidExpandItem(): Event; private readonly _onDidCollapseItem; get onDidCollapseItem(): Event; private _onDidChangeSelectionAndFocus; get onDidChangeSelectionAndFocus(): Event<{ selection: readonly ITreeItem[]; focus: ITreeItem; }>; private readonly _onDidChangeVisibility; get onDidChangeVisibility(): Event; private readonly _onDidChangeActions; get onDidChangeActions(): Event; private readonly _onDidChangeWelcomeState; get onDidChangeWelcomeState(): Event; private readonly _onDidChangeTitle; get onDidChangeTitle(): Event; private readonly _onDidChangeDescription; get onDidChangeDescription(): Event; private readonly _onDidChangeCheckboxState; get onDidChangeCheckboxState(): Event; private readonly _onDidCompleteRefresh; constructor(id: string, _title: string, themeService: IThemeService, instantiationService: IInstantiationService, commandService: ICommandService, configurationService: IConfigurationService, progressService: IProgressService, contextMenuService: IContextMenuService, keybindingService: IKeybindingService, notificationService: INotificationService, viewDescriptorService: IViewDescriptorService, hoverService: IHoverService, contextKeyService: IContextKeyService, activityService: IActivityService, logService: ILogService, openerService: IOpenerService, markdownRendererService: IMarkdownRendererService); private _isInitialized; private initialize; get viewContainer(): ViewContainer; get viewLocation(): ViewContainerLocation; private _dragAndDropController; get dragAndDropController(): ITreeViewDragAndDropController | undefined; set dragAndDropController(dnd: ITreeViewDragAndDropController | undefined); private _dataProvider; get dataProvider(): ITreeViewDataProvider | undefined; set dataProvider(dataProvider: ITreeViewDataProvider | undefined); private _message; get message(): string | IMarkdownString | undefined; set message(message: string | IMarkdownString | undefined); get title(): string; set title(name: string); private _description; get description(): string | undefined; set description(description: string | undefined); private _badge; private readonly _activity; get badge(): IViewBadge | undefined; set badge(badge: IViewBadge | undefined); get canSelectMany(): boolean; set canSelectMany(canSelectMany: boolean); get manuallyManageCheckboxes(): boolean; set manuallyManageCheckboxes(manuallyManageCheckboxes: boolean); get hasIconForParentNode(): boolean; get hasIconForLeafNode(): boolean; get visible(): boolean; private initializeShowCollapseAllAction; get showCollapseAllAction(): boolean; set showCollapseAllAction(showCollapseAllAction: boolean); private initializeShowRefreshAction; get showRefreshAction(): boolean; set showRefreshAction(showRefreshAction: boolean); private registerActions; setVisibility(isVisible: boolean): void; protected activated: boolean; protected abstract activate(): void; focus(reveal?: boolean, revealItem?: ITreeItem): void; show(container: HTMLElement): void; private create; private readonly treeDisposables; protected createTree(): void; private resolveCommand; private onContextMenu; protected updateMessage(): void; private processMessage; private showMessage; private hideMessage; private resetMessageElement; private _height; private _width; layout(height: number, width: number): void; getOptimalWidth(): number; private updateCheckboxes; refresh(elements?: readonly ITreeItem[], checkboxes?: readonly ITreeItem[]): Promise; expand(itemOrItems: ITreeItem | ITreeItem[]): Promise; isCollapsed(item: ITreeItem): boolean; setSelection(items: ITreeItem[]): void; getSelection(): ITreeItem[]; setFocus(item?: ITreeItem): void; reveal(item: ITreeItem): Promise; private refreshing; private doRefresh; private initializeCollapseAllToggle; private updateCollapseAllToggle; private updateContentAreas; get container(): HTMLElement | undefined; } declare class MultipleSelectionActionRunner extends ActionRunner { private getSelectedResources; constructor(notificationService: INotificationService, getSelectedResources: (() => ITreeItem[])); protected runAction(action: IAction, context: TreeViewItemHandleArg | TreeViewPaneHandleArg): Promise; } export declare class CustomTreeView extends AbstractTreeView { private readonly extensionId; private readonly extensionService; private readonly telemetryService; constructor(id: string, title: string, extensionId: string, themeService: IThemeService, instantiationService: IInstantiationService, commandService: ICommandService, configurationService: IConfigurationService, progressService: IProgressService, contextMenuService: IContextMenuService, keybindingService: IKeybindingService, notificationService: INotificationService, viewDescriptorService: IViewDescriptorService, contextKeyService: IContextKeyService, hoverService: IHoverService, extensionService: IExtensionService, activityService: IActivityService, telemetryService: ITelemetryService, logService: ILogService, openerService: IOpenerService, markdownRendererService: IMarkdownRendererService); protected activate(): void; } export declare class TreeView extends AbstractTreeView { protected activate(): void; } export declare class CustomTreeViewDragAndDrop implements ITreeDragAndDrop { private readonly treeId; private readonly labelService; private readonly instantiationService; private readonly treeViewsDragAndDropService; private readonly logService; private readonly treeMimeType; private readonly treeItemsTransfer; private dragCancellationToken; constructor(treeId: string, labelService: ILabelService, instantiationService: IInstantiationService, treeViewsDragAndDropService: ITreeViewsDnDService, logService: ILogService); private dndController; set controller(controller: ITreeViewDragAndDropController | undefined); private handleDragAndLog; private addExtensionProvidedTransferTypes; private addResourceInfoToTransfer; onDragStart(data: IDragAndDropData, originalEvent: DragEvent): void; private debugLog; onDragOver(data: IDragAndDropData, targetElement: ITreeItem, targetIndex: number, targetSector: ListViewTargetSector | undefined, originalEvent: DragEvent): boolean | ITreeDragOverReaction; getDragURI(element: ITreeItem): string | null; getDragLabel?(elements: ITreeItem[]): string | undefined; drop(data: IDragAndDropData, targetNode: ITreeItem | undefined, targetIndex: number | undefined, targetSector: ListViewTargetSector | undefined, originalEvent: DragEvent): Promise; onDragEnd(originalEvent: DragEvent): void; dispose(): void; } export {};