import type { DocumentUtamElement } from '../document-utam-element'; /** * Represents a Window Rectangle object * * @see https://www.w3.org/TR/webdriver/#resizing-and-positioning-windows */ export interface WindowRectangle { /** The window's screenX attribute. */ x: number; /** The window's screenY attribute. */ y: number; /** The windows's outerWidth attribute. */ width: number; /** The window's outerHeight attribute. */ height: number; } /** * Window interface exposing methods for manipulating a single browser window or tab. */ export interface Window { /** * Gets 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 - The {@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 current window. * * @returns A promise that resolves when the window has been successfully closed. */ close(): Promise; /** * Gets the document object associated with the current window. * * @returns The document object as a {@link DocumentUtamElement} */ getDocument(): DocumentUtamElement; } //# sourceMappingURL=window.d.ts.map