import { URI } from '@vscode-alt/monaco-editor/esm/vs/base/common/uri'; import { IWorkspaceFolderData, IWorkspaceData } from '../generated-model'; export declare const enum WorkbenchState { EMPTY = 1, FOLDER = 2, WORKSPACE = 3 } export interface IWorkspaceFoldersChangeEvent { added: IWorkspaceFolder[]; removed: IWorkspaceFolder[]; changed: IWorkspaceFolder[]; } export declare namespace IWorkspace { function isIWorkspace(thing: any): thing is IWorkspace; } export interface IWorkspace extends IWorkspaceData { /** * the unique identifier of the workspace. */ readonly id: string; /** * Folders in the workspace. */ readonly folders: IWorkspaceFolder[]; /** * the location of the workspace configuration */ readonly configuration?: URI | null; } export declare namespace IWorkspaceFolder { function isIWorkspaceFolder(thing: any): thing is IWorkspaceFolder; } export interface IWorkspaceFolder extends IWorkspaceFolderData { /** * Given workspace folder relative path, returns the resource with the absolute path. */ toResource?: (relativePath: string) => URI; }