/** * Sets whether a window is on top of all other windows. * * @param windowTitle The title of the window to set on top. * @param windowText Optional text found in the window. * @param onTop Whether to set the window on top or not. * * @returns 1 if the operation was successful, 0 otherwise. * * @example * ```typescript * import { WinSetOnTopSync } from '@ahmic/autoit-js'; * * WinSetOnTopSync('Untitled - Notepad', '', true); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinSetOnTop.htm */ export declare function WinSetOnTopSync(windowTitle: string, windowText: string | undefined, onTop: boolean): number; /** * Sets whether a window is on top of all other windows. * * @param windowTitle The title of the window to set on top. * @param windowText Optional text found in the window. * @param onTop Whether to set the window on top or not. * * @returns A promise that resolves to 1 if the operation was successful, or 0 otherwise. * * @example * ```typescript * import { WinSetOnTop } from '@ahmic/autoit-js'; * * await WinSetOnTop('Untitled - Notepad', '', true); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinSetOnTop.htm */ export declare function WinSetOnTop(windowTitle: string, windowText: string | undefined, onTop: boolean): Promise;