import type { ChainablePromiseElement } from 'webdriverio'; import { ViewItem, ViewItemLocators } from '../ViewItem.js'; import { ContextMenu } from '../../menu/ContextMenu.js'; import { ExtensionsViewSection } from './ExtensionsViewSection.js'; import { IPageDecorator, VSCodeLocatorMap } from '../../utils.js'; export interface ExtensionsViewItem extends IPageDecorator { } /** * Page object representing an extension in the extensions view * * @category Sidebar */ export declare class ExtensionsViewItem extends ViewItem { section: ExtensionsViewSection; /** * @private */ locatorKey: ("TreeItem" | "ExtensionsViewItem")[]; constructor(locators: VSCodeLocatorMap, extensionElement: ChainablePromiseElement, section: ExtensionsViewSection); /** * Get title of the extension */ getTitle(): Promise; /** * Get version of the extension * @returns Promise resolving to version string */ getVersion(): Promise; /** * Get the author of the extension * @returns Promise resolving to displayed author */ getAuthor(): Promise; /** * Get the description of the extension * @returns Promise resolving to description */ getDescription(): Promise; /** * Find if the extension is installed * @returns Promise resolving to true/false */ isInstalled(): Promise; /** * Open the management context menu if the extension is installed * @returns Promise resolving to ContextMenu object */ manage(): Promise; /** * Install the extension if not installed already. * * Will wait for the extension to finish installing. To skip the wait, set timeout to 0. * * @param timeout timeout to wait for the installation in milliseconds, default unlimited, set to 0 to skip waiting * @returns Promise resolving when the installation finishes or is skipped */ install(timeout?: number): Promise; } //# sourceMappingURL=ExtensionsViewItem.d.ts.map