import { IPoint, Point } from './@types'; /** * Retrieves the position of the caret in the active window. * * @returns An {@linkcode IPoint} object containing the x and y coordinates of the caret. * * @example * ```typescript * import { WinGetCaretPosSync } from '@ahmic/autoit-js'; * * const caretPos = WinGetCaretPosSync(); * * console.log(caretPos); // Output: { x: 10, y: 20 } * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinGetCaretPos.htm */ export declare function WinGetCaretPosSync(): Point; /** * Retrieves the position of the caret in the active window. * * @returns A promise that resolves to an {@linkcode IPoint} object containing the x and y coordinates of the * caret. * * @example * ```typescript * import { WinGetCaretPos } from '@ahmic/autoit-js'; * * const caretPos = await WinGetCaretPos(); * * console.log(caretPos); // Output: { x: 10, y: 20 } * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinGetCaretPos.htm */ export declare function WinGetCaretPos(): Promise;