import type { IAction } from "../../../../base/common/actions.js"; import { Disposable } from "../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../base/common/observable.js"; import { IAccessibleViewService } from "../../../../platform/accessibility/browser/accessibleView.service.js"; import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js"; import { IMarkdownRendererService } from "../../../../platform/markdown/browser/markdownRenderer.service.js"; import { ITerminalService } from "../../terminal/browser/terminal.service.js"; import type { ChatBackgroundShellOutput } from "../common/sessionChatPills.js"; /** Returns the background shell output view whose output region contains focus, if any. */ export declare function getFocusedBackgroundShellOutputView(): BackgroundShellOutputView | undefined; /** * A background shell's command and actions without output, presented like a * chat terminal tool call whose output is collapsed. Shows shells whose output * isn't available, such as detached ones. */ export declare class BackgroundShellCommandView extends Disposable { readonly element: HTMLElement; constructor(command: string, actions: readonly IAction[], markdownRendererService: IMarkdownRendererService); } /** * A background shell's command and live output, presented like a chat * terminal tool call: the command with its status and actions, above a small * read-only terminal that streams the output. */ export declare class BackgroundShellOutputView extends Disposable { private readonly _command; private readonly _output; readonly element: HTMLElement; private readonly _decoration; private readonly _region; private readonly _terminalContainer; private readonly _emptyElement; private _terminal; /** The output written to the terminal, which withholds a trailing line break so no empty row follows the output. */ private _displayed; private _cols; /** The column count the terminal was last resized to. */ private _resizedCols; constructor(_command: string, _output: IObservable, actions: readonly IAction[], terminalService: ITerminalService, markdownRendererService: IMarkdownRendererService, accessibleViewService: IAccessibleViewService, contextKeyService: IContextKeyService); /** The command, its status, and its output without ANSI escapes, for the accessible view. */ getAccessibleContent(): string; /** Focuses the output region. Returns false when the view is no longer shown. */ focusOutput(): boolean; private _render; private _layout; private _emptyText; }