/** * Sets the keyboard focus to a control in a window. * * @param windowTitle The title of the window to access. * @param windowText Optional text found in the window. * @param controlId The ID of the control to focus. * * @return 1 if success, 0 if failure. * * @example * ```typescript * import { ControlFocusSync } from '@ahmic/autoit-js'; * * ControlFocusSync('Untitled - Notepad', '', 'Edit1'); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlFocus.htm */ export declare function ControlFocusSync(windowTitle: string, windowText: string, controlId: string): number; /** * Sets the keyboard focus to a control in a window. * * @param windowTitle The title of the window to access. * @param windowText Optional text found in the window. * @param controlId The ID of the control to focus. * * @return A promise that resolves to 1 if success, or 0 if failure. * * @example * ```typescript * import { ControlFocus } from '@ahmic/autoit-js'; * * await ControlFocus('Untitled - Notepad', '', 'Edit1'); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlFocus.htm */ export declare function ControlFocus(windowTitle: string, windowText: string, controlId: string): Promise;