/** * Changes the title of a window. * * @param windowTitle The title of the window to modify. * @param windowText Optional text found in the window. * @param newTitle The new title to set for the window. * * @returns 1 if successful, 0 otherwise. * * @example * ```typescript * import { WinSetTitleSync } from '@ahmic/autoit-js'; * * WinSetTitleSync('Untitled - Notepad', '', 'New Title'); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinSetTitle.htm */ export declare function WinSetTitleSync(windowTitle: string, windowText: string | undefined, newTitle: string): number; /** * Changes the title of a window. * * @param windowTitle The title of the window to modify. * @param windowText Optional text found in the window. * @param newTitle The new title to set for the window. * * @returns A promise that resolves to 1 if successful, or 0 otherwise. * * @example * ```typescript * import { WinSetTitle } from '@ahmic/autoit-js'; * * await WinSetTitle('Untitled - Notepad', '', 'New Title'); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinSetTitle.htm */ export declare function WinSetTitle(windowTitle: string, windowText: string | undefined, newTitle: string): Promise;