import { ITreeElement, ITreeNode, ITreeRenderer } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/tree"; import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle"; import { IConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configuration.service"; import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service"; import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service"; import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation"; import { WorkbenchObjectTree } from "@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService"; import { IListService } from "@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService.service"; import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service"; import { ISettingsEditorViewState, SearchResultModel, SettingsTreeElement, SettingsTreeGroupElement } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/preferences/browser/settingsTreeModels"; export declare class TOCTreeModel { private _viewState; private environmentService; private _currentSearchModel; private _settingsTreeRoot; constructor(_viewState: ISettingsEditorViewState, environmentService: IWorkbenchEnvironmentService); get settingsTreeRoot(): SettingsTreeGroupElement; set settingsTreeRoot(value: SettingsTreeGroupElement); get currentSearchModel(): SearchResultModel | null; set currentSearchModel(model: SearchResultModel | null); get children(): SettingsTreeElement[]; update(): void; private updateGroupCount; private getGroupCount; } interface ITOCEntryTemplate { labelElement: HTMLElement; countElement: HTMLElement; elementDisposables: DisposableStore; } export declare class TOCRenderer implements ITreeRenderer { private readonly _hoverService; templateId: string; constructor(_hoverService: IHoverService); renderTemplate(container: HTMLElement): ITOCEntryTemplate; renderElement(node: ITreeNode, index: number, template: ITOCEntryTemplate): void; disposeTemplate(templateData: ITOCEntryTemplate): void; } export declare function createTOCIterator(model: TOCTreeModel | SettingsTreeGroupElement, tree: TOCTree): Iterable>; export declare class TOCTree extends WorkbenchObjectTree { constructor(container: HTMLElement, viewState: ISettingsEditorViewState, contextKeyService: IContextKeyService, listService: IListService, configurationService: IConfigurationService, hoverService: IHoverService, instantiationService: IInstantiationService); } export {};