import { DocumentUtamElement } from './document-utam-element'; import { Driver } from './lib/driver'; import { Window, WindowRectangle } from './lib/window'; /** * Represents an object that can manipulates a single browser window or tab */ export declare class WindowUtamElement implements Window { private _driver; private _document; private _handle; /** * Creates a new window object. * * @param driver browser driver instance */ private constructor(); /** * Creates a new Window instance associated with the given driver and current window handle. * * @param driver - The driver instance to be used * @returns A Promise that resolves to a new Window instance */ static create(driver: Driver): Promise; /** * Retrieves the rectangle of the current window. * * @returns A Promise that resolves to a {@link WindowRectangle} object representing the current window's rectangle. */ getRect(): Promise; /** * Sets the rectangle of the current window. * * @param rect - A {@link WindowRectangle} object representing the new window rectangle * @returns A Promise that resolves when the window's rectangle has been successfully updated */ setRect(rect: WindowRectangle): Promise; /** * Closes the associated window. * * @returns A Promise that resolves when the window has been successfully closed. * @throws Will throw an error if the window handle is not found. */ close(): Promise; /** * Retrieves the Document instance associated with the window. * * @returns The document instance. */ getDocument(): DocumentUtamElement; } //# sourceMappingURL=window-utam-element.d.ts.map