import { ActionBar } from "../../../base/browser/ui/actionbar/actionbar.js"; import { IHoverDelegate } from "../../../base/browser/ui/hover/hoverDelegate.js"; import { IListRenderer } from "../../../base/browser/ui/list/list.js"; import { IAction } from "../../../base/common/actions.js"; import { Event } from "../../../base/common/event.js"; import { DisposableStore } from "../../../base/common/lifecycle.js"; import { ThemeIcon } from "../../../base/common/themables.js"; import { IHoverService } from "../../hover/browser/hover.service.js"; import { ArtifactDetails, ArtifactDetailsItem, ArtifactIcon } from "../common/artifactIntegration.js"; export declare function getArtifactThemeIcon(value: ArtifactIcon): ThemeIcon; export declare function renderArtifactIcon(value: ThemeIcon, iconClass?: string): HTMLElement; export type { ArtifactDetailsItem }; export declare function getArtifactDetailsDescription(details: ArtifactDetails): string; /** Supplies the actions shown at the end of a details item row while the row is hovered, focused, or selected. */ export interface IArtifactDetailsItemActionProvider { /** Shared by every row, so moving between rows' actions shows their hovers without another delay. */ readonly hoverDelegate: IHoverDelegate; /** Fires when the actions of rendered items changed, so rows update in place and keep keyboard focus. */ readonly onDidChange: Event; /** Fires when the owning list's focused item changed. */ readonly onDidChangeFocus: Event; getActions(item: ArtifactDetailsItem): readonly IAction[]; /** Whether the item is the owning list's focused item, whose actions alone are in the tab order. */ isFocused(item: ArtifactDetailsItem): boolean; } /** An item action that has keyboard focus, identified independently of the row that renders it. */ export interface IArtifactDetailsItemActionFocus { readonly itemId: string; readonly actionId: string; } interface IArtifactDetailsItemTemplate { readonly row: HTMLElement; readonly icon: HTMLElement; readonly label: HTMLElement; readonly description?: HTMLElement; readonly actionBar?: ActionBar; readonly store: DisposableStore; item?: ArtifactDetailsItem; } export declare class ArtifactDetailsItemRenderer implements IListRenderer { private readonly hoverService; private readonly showDescription; private readonly actionProvider?; static readonly rowHeight = 28; readonly templateId = "artifactDetailsItem"; readonly rowHeight: number; private readonly templates; constructor(hoverService: IHoverService, showDescription?: boolean, actionProvider?: IArtifactDetailsItemActionProvider | undefined); renderTemplate(container: HTMLElement): IArtifactDetailsItemTemplate; renderElement(item: ArtifactDetailsItem, _index: number, template: IArtifactDetailsItemTemplate): void; private renderActions; private focusedAction; /** The item action that has keyboard focus, so a list update can restore it to the same item wherever it moves. */ getFocusedAction(): IArtifactDetailsItemActionFocus | undefined; /** Focuses an item's action if its row is rendered. */ focusAction(target: IArtifactDetailsItemActionFocus): boolean; disposeTemplate(template: IArtifactDetailsItemTemplate): void; } export declare function getArtifactDetailsItemLabel(item: ArtifactDetailsItem): string;