/** * Activates a window. * * @param windowTitle The title of the window to activate. * @param windowText Optional text found in the window. * * @returns 1 if successful, 0 otherwise. * * @example * ```typescript * import { WinActivateSync } from '@ahmic/autoit-js'; * * WinActivateSync('Untitled - Notepad'); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinActivate.htm */ export declare function WinActivateSync(windowTitle: string, windowText?: string): number; /** * Activates a window. * * @param windowTitle The title of the window to activate. * @param windowText Optional text found in the window. * * @returns A promise that resolves to 1 if successful, or 0 otherwise. * * @example * ```typescript * import { WinActivate } from '@ahmic/autoit-js'; * * await WinActivate('Untitled - Notepad'); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinActivate.htm */ export declare function WinActivate(windowTitle: string, windowText?: string): Promise;