/** * Retrieves the process ID associated with a window handle. * * @param windowHandle The handle of the window to access. * * @returns The process ID as a number. * * @example * ```typescript * import { WinGetProcessByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js'; * * const windowHandle = WinGetHandleSync('Untitled - Notepad'); * const processId = WinGetProcessByHandleSync(windowHandle); * * console.log(processId); // Output: 1234 * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinGetProcess.htm */ export declare function WinGetProcessByHandleSync(windowHandle: bigint): number; /** * Retrieves the process ID associated with a window handle. * * @param windowHandle The handle of the window to access. * * @returns A promise that resolves to the process ID as a number. * * @example * ```typescript * import { WinGetProcessByHandle, WinGetHandle } from '@ahmic/autoit-js'; * * const windowHandle = await WinGetHandle('Untitled - Notepad'); * const processId = await WinGetProcessByHandle(windowHandle); * * console.log(processId); // Output: 1234 * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinGetProcess.htm */ export declare function WinGetProcessByHandle(windowHandle: bigint): Promise;