import { URI } from "../../../../base/common/uri.js"; import { ResourceFileEdit } from "../../../../editor/browser/services/bulkEditService.js"; import { ProgressLocation } from "../../../../platform/progress/common/progress.js"; import { IEditableData } from "../../../common/views.js"; import { ExplorerItem } from "../common/explorerModel.js"; import { ISortOrderConfiguration } from "../common/files.js"; import { IExplorerView } from "./files.js"; export interface IExplorerService { readonly _serviceBrand: undefined; readonly roots: ExplorerItem[]; readonly sortOrderConfiguration: ISortOrderConfiguration; getContext(respectMultiSelection: boolean, ignoreNestedChildren?: boolean): ExplorerItem[]; hasViewFocus(): boolean; setEditable(stat: ExplorerItem, data: IEditableData | null): Promise; getEditable(): { stat: ExplorerItem; data: IEditableData; } | undefined; getEditableData(stat: ExplorerItem): IEditableData | undefined; isEditable(stat: ExplorerItem | undefined): boolean; findClosest(resource: URI): ExplorerItem | null; findClosestRoot(resource: URI): ExplorerItem | null; refresh(): Promise; setToCopy(stats: ExplorerItem[], cut: boolean): Promise; isCut(stat: ExplorerItem): boolean; applyBulkEdit(edit: ResourceFileEdit[], options: { undoLabel: string; progressLabel: string; confirmBeforeUndo?: boolean; progressLocation?: ProgressLocation.Explorer | ProgressLocation.Window; }): Promise; /** * Selects and reveal the file element provided by the given resource if its found in the explorer. * Will try to resolve the path in case the explorer is not yet expanded to the file yet. */ select(resource: URI, reveal?: boolean | string): Promise; registerView(contextAndRefreshProvider: IExplorerView): void; } export declare const IExplorerService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier;