import { Command } from './control-command'; /** * Sends a command to a control in a window. * * @param windowHandle The handle of the window to access. * @param controlHandle The handle of the control to send the command to. * @param command The command to send to the control. * @param option Optional additional parameter for the command. * @param characterCount The size of the buffer to store the result. * * @returns The result of the command as a string. * * @example * ```typescript * import { ControlCommandByHandleSync, WinGetHandleSync, ControlGetHandleSync } from '@ahmic/autoit-js'; * * const windowHandle = WinGetHandleSync('Untitled - Notepad'); * const controlHandle = ControlGetHandleSync(windowHandle, 'Edit1'); * const result = ControlCommandByHandleSync(windowHandle, controlHandle, 'IsVisible'); * * console.log(result); // Output: "1" if visible, "0" otherwise * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlCommand.htm */ export declare function ControlCommandByHandleSync(windowHandle: bigint, controlHandle: bigint, command: Command, option?: string, characterCount?: number): string; /** * Sends a command to a control in a window. * * @param windowHandle The handle of the window to access. * @param controlHandle The handle of the control to send the command to. * @param command The command to send to the control. * @param option Optional additional parameter for the command. * @param characterCount The size of the buffer to store the result. * * @returns A promise that resolves to the result of the command as a string. * * @example * ```typescript * import { ControlCommandByHandle, WinGetHandle, ControlGetHandle } from '@ahmic/autoit-js'; * * const windowHandle = await WinGetHandle('Untitled - Notepad'); * const controlHandle = await ControlGetHandle(windowHandle, 'Edit1'); * const result = await ControlCommandByHandle(windowHandle, controlHandle, 'IsVisible'); * * console.log(result); // Output: "1" if visible, "0" otherwise * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlCommand.htm */ export declare function ControlCommandByHandle(windowHandle: bigint, controlHandle: bigint, command: Command, option?: string, characterCount?: number): Promise;