import { Window } from './lib/window'; import { Driver } from './lib/driver'; import { Navigation } from './lib/navigation'; /** * Class that enables navigation in both web and mobile contexts */ export declare class NavigationUtamElement implements Navigation { private _driver; /** * Creates a new navigation object * @param driver browser driver instance */ constructor(driver: Driver); /** * Navigates one step backward in the current browsing context */ back(): Promise; /** * Navigates one step backward in the current browsing context */ forward(): Promise; /** * Switches to the window with the specified URL. * * @param url - The URL of the target window to switch to * @returns A promise that resolves to the {@link Window} object representing the switched-to window */ switchToWindow(url: string): Promise; /** * Closes the window with the specified URL or the current window if no URL is provided. * * @param url - (Optional) The URL of the window to close. If not provided, the current window will be closed. * @returns A Promise that resolves once the specified window or the current window has been closed. * @throws Will throw an error if the window with the specified URL is not found. */ closeWindow(url?: string): Promise; /** * Tries to get the current window handle and logs any errors that occur. * * @returns The window handle if successful, or undefined if an error occurs */ private tryGetWindowHandle; } //# sourceMappingURL=navigation-utam-element.d.ts.map