import { IDisposable } from "../../../../base/common/lifecycle.js"; import { IObservable, ITransaction } from "../../../../base/common/observable.js"; import { ICustomViewDescriptor } from "@codingame/monaco-vscode-workbench-service-override/vscode/vs/sessions/services/customView/browser/customView"; import { ICustomViewOpenRequest } from "@codingame/monaco-vscode-workbench-service-override/vscode/vs/sessions/services/customView/browser/customViewService"; export declare const ICustomViewService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; /** * Owns which custom view (if any) should be rendered in place of the sessions * grid. Only one view can be shown at a time. The Agents workbench observes * {@link activeCustomView} and, while it is set, renders the custom view grid * and hides the sessions grid, the side panel and the bottom panel. */ export interface ICustomViewService { readonly _serviceBrand: undefined; /** The view that should currently be rendered, or `undefined` for none. */ readonly activeCustomView: IObservable; /** The current opening, including repeated explicit opens of the same view. */ readonly activeCustomViewOpen: IObservable; registerCustomView(descriptor: ICustomViewDescriptor, options?: { readonly restore?: boolean; }): IDisposable; /** * Shows the registered view with the given id, replacing any shown view. `state` identifies * what this opening shows; history records it and passes it back when it reopens the view. */ showCustomView(id: string, options?: { readonly source?: "history"; readonly state?: string; }): void; hideCustomView(tx?: ITransaction): void; }