/** * Gets the ID of the control that has keyboard focus in a window. * * @param windowHandle The handle of the window to access. * * @returns The ID of the control that has keyboard focus. * * @example * ```typescript * import { ControlGetFocusByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js'; * * const windowHandle = WinGetHandleSync('Untitled - Notepad'); * * const id = ControlGetFocusByHandleSync(windowHandle); * * console.log(id); // Output: "Edit1" * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlGetFocus.htm */ export declare function ControlGetFocusByHandleSync(windowHandle: bigint): string; /** * Gets the ID of the control that has keyboard focus in a window. * * @param windowHandle The handle of the window to access. * * @returns A promise that resolves to the ID of the control that has keyboard focus. * * @example * ```typescript * import { ControlGetFocusByHandle, WinGetHandle } from '@ahmic/autoit-js'; * * const windowHandle = await WinGetHandle('Untitled - Notepad'); * * const id = await ControlGetFocusByHandle(windowHandle); * * console.log(id); // Output: "Edit1" * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlGetFocus.htm */ export declare function ControlGetFocusByHandle(windowHandle: bigint): Promise;