import { CodeWindow } from "../../../../base/browser/window.js"; import { VSBuffer } from "../../../../base/common/buffer.js"; import { IMarkdownString } from "../../../../base/common/htmlContent.js"; import { URI } from "../../../../base/common/uri.js"; import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js"; import { IFileDialogService } from "../../../../platform/dialogs/common/dialogs.service.js"; import { IResourceEditorInput } from "../../../../platform/editor/common/editor.js"; import { IFileService } from "../../../../platform/files/common/files.service.js"; import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js"; import { ILabelService } from "../../../../platform/label/common/label.service.js"; import { IUndoRedoService } from "../../../../platform/undoRedo/common/undoRedo.service.js"; import { EditorInputCapabilities, GroupIdentifier, IMoveResult, IRevertOptions, ISaveOptions, IUntypedEditorInput, Verbosity } from "../../../common/editor.js"; import { EditorInput } from "../../../common/editor/editorInput.js"; import { ICustomEditorLabelService } from "../../../services/editor/common/customEditorLabelService.service.js"; import { ICustomEditorService } from "../common/customEditor.service.js"; import { IOverlayWebview } from "../../webview/browser/webview.js"; import { LazilyResolvedWebviewEditorInput } from "../../webviewPanel/browser/webviewWorkbenchService.js"; import { IWebviewWorkbenchService } from "../../webviewPanel/browser/webviewWorkbenchService.service.js"; import { IEditorGroupsService } from "../../../services/editor/common/editorGroupsService.service.js"; import { IFilesConfigurationService } from "../../../services/filesConfiguration/common/filesConfigurationService.service.js"; import { IWorkbenchLayoutService } from "../../../services/layout/browser/layoutService.service.js"; import { IThemeService } from "../../../../platform/theme/common/themeService.service.js"; import { WebviewIconPath } from "../../webviewPanel/browser/webviewEditorInput.js"; interface CustomEditorInputInitInfo { readonly resource: URI; readonly viewType: string; readonly webviewTitle: string | undefined; readonly iconPath: WebviewIconPath | undefined; } export declare class CustomEditorInput extends LazilyResolvedWebviewEditorInput { private readonly instantiationService; private readonly labelService; private readonly customEditorService; private readonly fileDialogService; private readonly undoRedoService; private readonly fileService; private readonly filesConfigurationService; private readonly editorGroupsService; private readonly layoutService; private readonly customEditorLabelService; static create(instantiationService: IInstantiationService, init: CustomEditorInputInitInfo, group: GroupIdentifier | undefined, options?: { readonly customClasses?: string; readonly oldResource?: URI; }): EditorInput; static readonly typeId = "workbench.editors.webviewEditor"; private readonly _editorResource; readonly oldResource?: URI; private _defaultDirtyState; private _editorName; private readonly _backupId; private readonly _untitledDocumentData; get resource(): URI; private _modelRef?; constructor(init: CustomEditorInputInitInfo, webview: IOverlayWebview, options: { startsDirty?: boolean; backupId?: string; untitledDocumentData?: VSBuffer; readonly oldResource?: URI; }, themeService: IThemeService, webviewWorkbenchService: IWebviewWorkbenchService, instantiationService: IInstantiationService, labelService: ILabelService, customEditorService: ICustomEditorService, fileDialogService: IFileDialogService, undoRedoService: IUndoRedoService, fileService: IFileService, filesConfigurationService: IFilesConfigurationService, editorGroupsService: IEditorGroupsService, layoutService: IWorkbenchLayoutService, customEditorLabelService: ICustomEditorLabelService); private registerListeners; private onLabelEvent; private updateLabel; get typeId(): string; get editorId(): string; get capabilities(): EditorInputCapabilities; getName(): string; getDescription(verbosity?: Verbosity): string | undefined; private _shortDescription; private get shortDescription(); private _mediumDescription; private get mediumDescription(); private _longDescription; private get longDescription(); private _shortTitle; private get shortTitle(); private _mediumTitle; private get mediumTitle(); private _longTitle; private get longTitle(); getTitle(verbosity?: Verbosity): string; matches(other: EditorInput | IUntypedEditorInput): boolean; copy(): EditorInput; isReadonly(): boolean | IMarkdownString; isDirty(): boolean; save(groupId: GroupIdentifier, options?: ISaveOptions): Promise; saveAs(groupId: GroupIdentifier, options?: ISaveOptions): Promise; revert(group: GroupIdentifier, options?: IRevertOptions): Promise; resolve(): Promise; rename(group: GroupIdentifier, newResource: URI): Promise; undo(): void | Promise; redo(): void | Promise; private _moveHandler?; onMove(handler: (newResource: URI) => void): void; protected transfer(other: CustomEditorInput): CustomEditorInput | undefined; get backupId(): string | undefined; get untitledDocumentData(): VSBuffer | undefined; toUntyped(): IResourceEditorInput; claim(claimant: unknown, targetWindow: CodeWindow, scopedContextKeyService: IContextKeyService | undefined): void; canMove(sourceGroup: GroupIdentifier, targetGroup: GroupIdentifier): true | string; private doCanMove; } export {};