/** * Waits for a window to exist. * * @param windowHandle The handle of the window to wait for. * @param timeout The timeout in seconds. Default is 0 (wait indefinitely). * * @returns 1 if the window exists, 0 if the timeout is reached. * * @example * ```typescript * import { WinWaitByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js'; * * const handle = WinGetHandleSync('Untitled - Notepad'); * WinWaitByHandleSync(handle, 10); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinWait.htm */ export declare function WinWaitByHandleSync(windowHandle: bigint, timeout?: number): number; /** * Waits for a window to exist. * * @param windowHandle The handle of the window to wait for. * @param timeout The timeout in seconds. Default is 0 (wait indefinitely). * * @returns A promise that resolves to 1 if the window exists, or 0 if the timeout is reached. * * @example * ```typescript * import { WinWaitByHandle, WinGetHandle } from '@ahmic/autoit-js'; * * const handle = await WinGetHandle('Untitled - Notepad'); * await WinWaitByHandle(handle, 10); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinWait.htm */ export declare function WinWaitByHandle(windowHandle: bigint, timeout?: number): Promise;