import * as jsoncParser from 'jsonc-parser'; import { Command, Disposable, DisposableCollection, Emitter, MessageService, ILogger } from '@theia/core'; import { interfaces } from '@theia/core/shared/inversify'; import { MonacoTextModelService } from '@theia/monaco/lib/browser/monaco-text-model-service'; import { MonacoEditorModel } from '@theia/monaco/lib/browser/monaco-editor-model'; import { MonacoWorkspace } from '@theia/monaco/lib/browser/monaco-workspace'; import { FrontendApplicationStateService } from '@theia/core/lib/browser/frontend-application-state'; import { EditorManager } from '@theia/editor/lib/browser'; import { Widget } from '@theia/core/lib/browser'; import { FileService } from '@theia/filesystem/lib/browser/file-service'; import { Deferred } from '@theia/core/lib/common/promise-util'; import URI from '@theia/core/lib/common/uri'; import { DeflatedToolbarTree, ToolbarTreeSchema, ToolbarItemDeflated, ToolbarAlignment, ToolbarItemPosition } from './toolbar-interfaces.js'; export declare const TOOLBAR_BAD_JSON_ERROR_MESSAGE: string; export declare class ToolbarStorageProvider implements Disposable { protected readonly appState: FrontendApplicationStateService; protected readonly textModelService: MonacoTextModelService; protected readonly fileService: FileService; protected readonly messageService: MessageService; protected lateInjector: (id: interfaces.ServiceIdentifier) => T; protected readonly USER_TOOLBAR_URI: URI; protected readonly defaultsFactory: () => DeflatedToolbarTree; protected readonly logger: ILogger; get ready(): Promise; protected readonly _ready: Deferred; protected monacoWorkspace: MonacoWorkspace; protected editorManager: EditorManager; protected model: MonacoEditorModel | undefined; protected toDispose: DisposableCollection; protected toolbarItemsUpdatedEmitter: Emitter; readonly onToolbarItemsChanged: import("@theia/core").Event; protected _toolbarItems: DeflatedToolbarTree | undefined; get toolbarItems(): DeflatedToolbarTree | undefined; protected init(): void; protected doInit(): Promise; protected readConfiguration(): void; removeItem(position: ToolbarItemPosition): Promise; addItem(command: Command, alignment: ToolbarAlignment): Promise; swapValues(oldPosition: ToolbarItemPosition, newPosition: ToolbarItemPosition, direction: 'location-left' | 'location-right'): Promise; addItemToEmptyColumn(item: ToolbarItemDeflated, alignment: ToolbarAlignment): Promise; moveItemToEmptySpace(oldPosition: ToolbarItemPosition, newAlignment: ToolbarAlignment, centerPosition?: 'left' | 'right'): Promise; insertGroup(position: ToolbarItemPosition, insertDirection: 'left' | 'right'): Promise; protected removeEmptyGroupsFromToolbar(toolbarItems: DeflatedToolbarTree | undefined): DeflatedToolbarTree | undefined; restoreToolbarDefaults(): Promise; protected writeToFile(path: jsoncParser.JSONPath, value: unknown, insertion?: boolean): Promise; protected parseContent(fileContent: string): DeflatedToolbarTree | undefined; protected parse(fileContent: string): DeflatedToolbarTree | undefined; openOrCreateJSONFile(state: ToolbarTreeSchema, doOpen?: boolean): Promise; dispose(): void; } //# sourceMappingURL=toolbar-storage-provider.d.ts.map