/** * Sets the text of a control in a window. * * @param windowTitle The title of the window to search for. * @param windowText Optional text found in the window. * @param controlId The ID of the control to set text for. * @param value The text to set for the control. * * @returns 1 if successful, 0 otherwise. * * @example * ```typescript * import { ControlSetTextSync } from '@ahmic/autoit-js'; * * ControlSetTextSync('Untitled - Notepad', '', 'Edit1', 'Hello, World!'); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlSetText.htm */ export declare function ControlSetTextSync(windowTitle: string, windowText: string, controlId: string, value: string): number; /** * Sets the text of a control in a window. * * @param windowTitle The title of the window to search for. * @param windowText Optional text found in the window. * @param controlId The ID of the control to set text for. * @param value The text to set for the control. * * @returns A promise that resolves to 1 if successful, or 0 otherwise. * * @example * ```typescript * import { ControlSetText } from '@ahmic/autoit-js'; * * await ControlSetText('Untitled - Notepad', '', 'Edit1', 'Hello, World!'); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlSetText.htm */ export declare function ControlSetText(windowTitle: string, windowText: string, controlId: string, value: string): Promise;