import { ChainablePromiseElement } from 'webdriverio'; import { ViewSection } from '../index.js'; import { BasePage, IPageDecorator, VSCodeLocatorMap } from '../utils.js'; import { WelcomeContent as WelcomeContentLocators } from '../../locators/1.73.0.js'; export interface WelcomeContentButton extends IPageDecorator { } /** * A button that appears in the welcome content and can be clicked to execute a command. * * To execute the command bound to this button simply run: `await button.click();`. * * @category Sidebar */ export declare class WelcomeContentButton extends BasePage { welcomeSection: WelcomeContentSection; /** * @private */ locatorKey: "WelcomeContent"; /** * @param panel The panel containing the button in the welcome section * @param welcomeSection The enclosing welcome section */ constructor(locators: VSCodeLocatorMap, panel: ChainablePromiseElement, welcomeSection: WelcomeContentSection); /** Return the title displayed on this button */ getTitle(): Promise; } export interface WelcomeContentSection extends IPageDecorator { } /** * A section in an empty custom view, see: * https://code.visualstudio.com/api/extension-guides/tree-view#welcome-content * * The welcome section contains two types of elements: text entries and buttons that can be bound to commands. * The text sections can be accessed via [[getTextSections]], the buttons on the * other hand via [[getButtons]]. * This however looses the information of the order of the buttons and lines * with respect to each other. This can be remedied by using [[getContents]], * which returns both in the order that they are found (at the expense, that you * now must use typechecks to find out what you got). * * @category Sidebar */ export declare class WelcomeContentSection extends BasePage { /** * @private */ locatorKey: "WelcomeContent"; /** * @param panel The panel containing the welcome content. * @param parent The webelement in which the welcome content is embedded. */ constructor(locators: VSCodeLocatorMap, panel: ChainablePromiseElement, parent: ViewSection); /** * Combination of [[getButtons]] and [[getTextSections]]: returns all entries in the welcome * view in the order that they appear. */ getContents(): Promise<(WelcomeContentButton | string)[]>; /** Finds all buttons in the welcome content */ getButtons(): Promise; /** * Finds all text entries in the welcome content and returns each line as an * element in an array. */ getTextSections(): Promise; } //# sourceMappingURL=WelcomeContent.d.ts.map