import { Disposable, IDisposable } from "../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../base/common/observable.js"; import { ThemeIcon } from "../../../../base/common/themables.js"; import { URI } from "../../../../base/common/uri.js"; import { SyncDescriptor } from "../../../../platform/instantiation/common/descriptors.js"; import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js"; import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js"; import { ILogService } from "../../../../platform/log/common/log.service.js"; import { IStorageService } from "../../../../platform/storage/common/storage.service.js"; import { EditorInputCapabilities, GroupIdentifier, IUntypedEditorInput } from "../../../../workbench/common/editor.js"; import { EditorInput } from "../../../../workbench/common/editor/editorInput.js"; import { IEditorGroupsService } from "../../../../workbench/services/editor/common/editorGroupsService.service.js"; import { IEditorService } from "../../../../workbench/services/editor/common/editorService.service.js"; import { ILifecycleService } from "../../../../workbench/services/lifecycle/common/lifecycle.service.js"; import { ICanvasWorkingSets } from "../../../../workbench/contrib/canvases/common/canvas.js"; import { ICustomViewService } from "../../customView/browser/customViewService.service.js"; import { IWindowCanvasService } from "./windowCanvasService.service.js"; export interface IWindowCanvas extends IDisposable { render(container: HTMLElement): void; layout(width: number, height: number): void; focus(): void; setVisible(visible: boolean): void; openNewSession?(): Promise; } export interface IWindowCanvasDescriptor { readonly id: string; readonly title: string; readonly icon: ThemeIcon; readonly ctor: SyncDescriptor; /** Retain this canvas's focused control across background working-set replacement. Defaults to false. */ readonly retainFocusOnRestore?: boolean; } export interface IWindowCanvasPresentation { readonly element: HTMLElement; readonly content: IWindowCanvas; } export declare class WindowCanvasInput extends EditorInput { readonly descriptor: IWindowCanvasDescriptor; private readonly editorGroupsService; static readonly ID = "sessions.editorInput.windowCanvas"; static readonly EDITOR_ID = "sessions.editor.windowCanvas"; readonly resource: URI; constructor(descriptor: IWindowCanvasDescriptor, editorGroupsService: IEditorGroupsService); get typeId(): string; get editorId(): string; get capabilities(): EditorInputCapabilities; getName(): string; getIcon(): ThemeIcon; canMove(_source: GroupIdentifier, target: GroupIdentifier): true | string; matches(other: EditorInput | IUntypedEditorInput): boolean; } export declare class WindowCanvasService extends Disposable implements IWindowCanvasService { private readonly editorService; private readonly editorGroupsService; private readonly instantiationService; private readonly customViewService; private readonly storageService; private readonly logService; private readonly contextKeyService; private readonly lifecycleService; readonly _serviceBrand: undefined; private readonly descriptors; private readonly entries; private readonly _canvases; readonly canvases: import("../../../../base/common/observable.js").ISettableObservable; readonly activeCanvasId: IObservable; private readonly restoredIds; private workingSets; constructor(editorService: IEditorService, editorGroupsService: IEditorGroupsService, instantiationService: IInstantiationService, customViewService: ICustomViewService, storageService: IStorageService, logService: ILogService, contextKeyService: IContextKeyService, lifecycleService: ILifecycleService); connectWorkingSets(workingSets: ICanvasWorkingSets): IDisposable; registerCanvas(descriptor: IWindowCanvasDescriptor): IDisposable; openCanvas(id: string): Promise; private reveal; getPresentation(input: WindowCanvasInput): IWindowCanvasPresentation; openNewSession(): Promise | undefined; closeCanvas(id: string): Promise; private forget; private saveOpenCanvases; }