import { IRect } from './@types'; /** * Gets the position of a control in a window, relative to the window itself. * * @param windowHandle The handle of the window to access. * @param controlHandle The handle of the control to get the position for. * * @returns The position of the control as a {@linkcode Rect} object. * * @example * ```typescript * import { ControlGetPosByHandleSync, ControlGetHandleSync, WinGetHandleSync } from '@ahmic/autoit-js'; * * const windowHandle = WinGetHandleSync('Untitled - Notepad'); * const controlHandle = ControlGetHandleSync(windowHandle, 'Edit1'); * * const rect = ControlGetPosByHandleSync(windowHandle, controlHandle); * * console.log(rect); // Output: { left: 10, top: 10, right: 100, bottom: 100 } * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlGetPos.htm */ export declare function ControlGetPosByHandleSync(windowHandle: bigint, controlHandle: bigint): IRect; /** * Gets the position of a control in a window, relative to the window itself. * * @param windowHandle The handle of the window to access. * @param controlHandle The handle of the control to get the position for. * * @returns A promise that resolves to the position of the control as a {@linkcode Rect} object. * * @example * ```typescript * import { ControlGetPosByHandle, ControlGetHandle, WinGetHandle } from '@ahmic/autoit-js'; * * const windowHandle = await WinGetHandle('Untitled - Notepad'); * const controlHandle = await ControlGetHandle(windowHandle, 'Edit1'); * * const rect = await ControlGetPosByHandle(windowHandle, controlHandle); * * console.log(rect); // Output: { left: 10, top: 10, right: 100, bottom: 100 } * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlGetPos.htm */ export declare function ControlGetPosByHandle(windowHandle: bigint, controlHandle: bigint): Promise;