import { TreeViewCommand } from './control-tree-view'; /** * Interacts with a tree view control in a window. * * @param windowHandle The handle of the window to access. * @param controlHandle The handle of the tree view control to interact with. * @param command The command to send to the tree view control. * @param option1 Optional parameter for the command. * @param option2 Optional parameter for the command. * * @returns The result of the command as a string. * * @example * ```typescript * import { ControlTreeViewByHandleSync, WinGetHandleSync, ControlGetHandleSync } from '@ahmic/autoit-js'; * * const windowHandle = WinGetHandleSync('Untitled - Notepad'); * const controlHandle = ControlGetHandleSync(windowHandle, 'SysTreeView32'); * const result = ControlTreeViewByHandleSync(windowHandle, controlHandle, 'GetItemCount'); * * console.log(result); // Output: "5" * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlTreeView.htm */ export declare function ControlTreeViewByHandleSync(windowHandle: bigint, controlHandle: bigint, command: TreeViewCommand, option1?: string, option2?: string, characterCount?: number): string; /** * Interacts with a tree view control in a window. * * @param windowHandle The handle of the window to access. * @param controlHandle The handle of the tree view control to interact with. * @param command The command to send to the tree view control. * @param option1 Optional parameter for the command. * @param option2 Optional parameter for the command. * * @returns A promise that resolves to the result of the command as a string. * * @example * ```typescript * import { ControlTreeViewByHandle, WinGetHandle, ControlGetHandle } from '@ahmic/autoit-js'; * * const windowHandle = await WinGetHandle('Untitled - Notepad'); * const controlHandle = await ControlGetHandle(windowHandle, 'SysTreeView32'); * const result = await ControlTreeViewByHandle(windowHandle, controlHandle, 'GetItemCount'); * * console.log(result); // Output: "5" * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlTreeView.htm */ export declare function ControlTreeViewByHandle(windowHandle: bigint, controlHandle: bigint, command: TreeViewCommand, option1?: string, option2?: string, characterCount?: number): Promise;