import { StandardMouseEvent } from "../../../base/browser/mouseEvent.js"; import { IAnchor } from "../../../base/browser/ui/contextview/contextview.js"; import { IListAccessibilityProvider } from "../../../base/browser/ui/list/listWidget.js"; import { IAction } from "../../../base/common/actions.js"; import { IActionListItem, IActionListDelegate, IActionListOptions, IActionListUpdateOptions } from "./actionList.js"; export declare const IActionWidgetService: import("../../instantiation/common/instantiation.js").ServiceIdentifier; export interface IActionWidgetService { readonly _serviceBrand: undefined; show(user: string, supportsPreview: boolean, items: readonly IActionListItem[], delegate: IActionListDelegate, anchor: HTMLElement | StandardMouseEvent | IAnchor, container: HTMLElement | undefined, actionBarActions?: readonly IAction[], accessibilityProvider?: Partial>>, listOptions?: IActionListOptions, contextViewLayer?: number): void; /** * Replaces the items of the currently shown widget in place, without closing * or repositioning it. Preserves the current filter. When `focusItemId` is * provided, focuses that item; otherwise preserves the focused item. */ updateItems(items: readonly IActionListItem[], focusItemId?: string, options?: IActionListUpdateOptions): void; /** * The item currently focused in the shown widget, if any. */ getFocusedElement(): IActionListItem | undefined; /** * Focuses the item with the given id in the currently shown widget, without * rebuilding the list. */ focusItemById(itemId: string): void; /** Collapses the section that contains the focused item. */ collapseSection(): void; /** Expands the section that contains the focused item. */ expandSection(): void; setFilter(value: string, focusItemId?: string): void; hide(didCancel?: boolean): void; readonly isVisible: boolean; }