import { Disposable, IDisposable } from "../../../../base/common/lifecycle.js"; import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js"; import { IOpenerService } from "../../../../platform/opener/common/opener.service.js"; import { ChecksViewModel } from "./checksViewModel.js"; /** * A widget that shows the CI status of a PR. * Rendered beneath the changes tree in the changes view as a SplitView pane. */ export declare class CIStatusWidget extends Disposable { private readonly _openerService; private readonly _instantiationService; static readonly HEADER_HEIGHT = 34; static readonly MIN_BODY_HEIGHT: number; static readonly PREFERRED_BODY_HEIGHT: number; static readonly MAX_BODY_HEIGHT = 240; private readonly _domNode; private readonly _headerNode; private readonly _titleNode; private readonly _titleLabelNode; private readonly _countsNode; private readonly _bodyNode; private readonly _list; private readonly _labels; private readonly _onDidChangeHeight; readonly onDidChangeHeight: import("../../../../base/common/event.js").Event; private readonly _onDidToggleCollapsed; readonly onDidToggleCollapsed: import("../../../../base/common/event.js").Event; private _checkCount; private _collapsed; private _model; private readonly _chevronNode; get element(): HTMLElement; /** The full content height the widget would like (header + all checks). */ get desiredHeight(): number; /** Whether the widget is currently visible (has checks to show). */ get visible(): boolean; /** Whether the body is collapsed (header-only). */ get collapsed(): boolean; constructor(container: HTMLElement, _openerService: IOpenerService, _instantiationService: IInstantiationService); setInput(input: ChecksViewModel): IDisposable; private _renderHeader; /** * Layout the widget body list to the given height. * Called by the parent view after computing available space. */ layout(height: number): void; private _toggleCollapsed; /** Sets the collapsed state and notifies the SplitView layout. */ setCollapsed(collapsed: boolean): void; /** * Expand the body if it is currently collapsed, notifying listeners so the * parent pane restores its size. No-op when already expanded. */ expand(): void; /** * Move keyboard focus into the checks list. Falls back to the header when * the body is collapsed or there is nothing to focus. */ focus(): void; private _setCollapsed; private _updateChevron; private _renderBody; }