import { IRect } from './@types'; /** * Retrieves the client area dimensions of a window. * * @param windowTitle The title of the window to access. * @param windowText Optional text found in the window. * * @returns An {@linkcode IRect} object containing the width and height of the client area. * * @example * ```typescript * import { WinGetClientSizeSync } from '@ahmic/autoit-js'; * * const clientSize = WinGetClientSizeSync('Untitled - Notepad'); * * console.log(clientSize); // Output: { width: 800, height: 600 } * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinGetClientSize.htm */ export declare function WinGetClientSizeSync(windowTitle: string, windowText?: string): IRect; /** * Retrieves the client area dimensions of a window. * * @param windowTitle The title of the window to access. * @param windowText Optional text found in the window. * * @returns A promise that resolves to an {@linkcode IRect} object containing the width and height of the * client area. * * @example * ```typescript * import { WinGetClientSize } from '@ahmic/autoit-js'; * * const clientSize = await WinGetClientSize('Untitled - Notepad'); * * console.log(clientSize); // Output: { width: 800, height: 600 } * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/WinGetClientSize.htm */ export declare function WinGetClientSize(windowTitle: string, windowText?: string): Promise;