import type Control from "sap/ui/core/Control"; import type { wdi5Config, wdi5Selector } from "./wdi5.types.js"; import type { WDI5Control } from "../lib/wdi5-control.js"; import type { WDI5FE } from "../lib/wdi5-fe.js"; /** * wdi5 control cache aka * wdi5 keeping score of already retrieved UI5 controls */ type cachedControl = { [key: string]: Control; }; declare global { namespace WebdriverIO { interface Browser { config: wdi5Config; _asControl: (arg: wdi5Selector) => Promise; asControl: (arg: wdi5Selector) => Promise; allControls: (arg: wdi5Selector) => Promise<(WDI5Control & T)[]>; screenshot: (arg: string) => Promise; goTo: (arg: string | object) => Promise; /** * adding the wdi5 control cache to the global browser object */ _controls: cachedControl[]; fe: typeof WDI5FE; getUI5Version: () => Promise; } } } declare global { var __wdi5Config: wdi5Config; } export {}; //# sourceMappingURL=browser-commands.d.ts.map