import { IRect } from './@types'; /** * Retrieves the position and size of a window. * * @param windowTitle The title of the window. * @param windowText Optional text found in the window. * * @returns An {@linkcode IRect} object containing the position and size of the window. * * @example * ```typescript * import { WinGetPosSync } from '@ahmic/autoit-js'; * * const rect = WinGetPosSync('Untitled - Notepad'); * * console.log(rect); // Output: { left: 100, top: 100, right: 200, bottom: 200 } * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinGetPos.htm */ export declare function WinGetPosSync(windowTitle: string, windowText?: string): IRect; /** * Retrieves the position and size of a window. * * @param windowTitle The title of the window. * @param windowText Optional text found in the window. * * @returns A promise that resolves to an {@linkcode IRect} object containing the position and size of the * window. * * @example * ```typescript * import { WinGetPos } from '@ahmic/autoit-js'; * * const rect = await WinGetPos('Untitled - Notepad'); * * console.log(rect); // Output: { left: 100, top: 100, right: 200, bottom: 200 } * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinGetPos.htm */ export declare function WinGetPos(windowTitle: string, windowText?: string): Promise;