import { IDisposable } from "../../base/common/lifecycle.js"; import { IWorkbenchLayoutService } from "../../workbench/services/layout/browser/layoutService.service.js"; import { ChatLayoutPresentation } from "../common/chatLayout.js"; import { Event } from "../sessions.web.main.internal.js"; import { IDockedEditorLayout, ISidePaneToggleEvent, ISidePaneState, AgentWorkbenchLayout } from "./workbench.js"; export declare const IAgentWorkbenchLayoutService: import("../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface IAgentWorkbenchLayoutService extends IWorkbenchLayoutService, IDockedEditorLayout { isEditorMaximized(): boolean; setEditorMaximized(maximized: boolean): void; isEditorPaneVisible(): boolean; /** Whether the side pane (editor area and/or auxiliary bar) is visible. */ isSidePaneVisible(): boolean; /** Fired synchronously before the side pane starts toggling. */ readonly onWillToggleSidePane: Event; /** Fired synchronously after the side pane finishes toggling. */ readonly onDidToggleSidePane: Event; /** * Toggle the side pane — the editor area and auxiliary bar as one surface. * Closing hides both; re-opening restores the parts visible when it was last * closed, falling back to the layout's default reopen parts. Empty surfaces * are never revealed, and a maximized desktop editor collapses fully. * Returns whether the side pane is now visible. */ toggleSidePane(): boolean; /** Hides the side pane as one semantic transition. */ hideSidePane(): void; captureSidePaneComposition(): ISidePaneState; restoreSidePaneComposition(composition: ISidePaneState): void; readonly onDidChangeEditorMaximized: Event; /** The concrete Agents workbench presentation selected at startup. */ readonly agentWorkbenchLayout: AgentWorkbenchLayout; readonly chatLayoutPresentation: ChatLayoutPresentation; /** * Suppresses the automatic editor part show/hide that normally fires from * `editorService.onWillOpenEditor` / `onDidCloseEditor`. Use this around * programmatic editor operations (e.g. applying a working set) so that the * editor part visibility is not changed as a side-effect. Dispose the * returned handle to release the suppression. Calls nest via a counter. */ suppressEditorPartAutoVisibility(): IDisposable; /** Whether programmatic editor operations currently suppress automatic side-pane visibility. */ isEditorPartAutoVisibilitySuppressed(): boolean; /** * Changes docked detail visibility in response to a sash resize without * persisting it as an explicit user visibility preference. */ setAuxiliaryBarHiddenForResize(hidden: boolean): void; }