import { ListViewCommand } from './control-list-view'; /** * Interacts with a ListView control in a window. * * @param windowHandle The handle of the window to access. * @param controlHandle The handle of the ListView control to interact with. * @param command The command to execute on the ListView control. See {@linkcode ListViewCommand} for details. * @param option1 Optional parameter for the command. * @param option2 Optional parameter for the command. * @param characterCount The maximum number of characters to retrieve. Default is 1024. * * @returns The result of the command as a string. * * @example * ```typescript * import { * ControlListViewByHandleSync, * ListViewCommand, * ControlGetHandleSync, * WinGetHandleSync, * } from '@ahmic/autoit-js'; * * const windowHandle = WinGetHandleSync('Untitled - Notepad'); * const controlHandle = ControlGetHandleSync(windowHandle, 'SysListView32'); * * const itemCount = ControlListViewByHandleSync(windowHandle, controlHandle, ListViewCommand.GetItemCount); * * console.log(itemCount); // Output: "5" * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlListView.htm */ export declare function ControlListViewByHandleSync(windowHandle: bigint, controlHandle: bigint, command: ListViewCommand, option1?: string, option2?: string, characterCount?: number): string; /** * Interacts with a ListView control in a window. * * @param windowHandle The handle of the window to access. * @param controlHandle The handle of the ListView control to interact with. * @param command The command to execute on the ListView control. See {@linkcode ListViewCommand} for details. * @param option1 Optional parameter for the command. * @param option2 Optional parameter for the command. * @param characterCount The maximum number of characters to retrieve. Default is 1024. * * @returns A promise that resolves to the result of the command as a string. * * @example * ```typescript * import { ControlListViewByHandle, ListViewCommand, ControlGetHandle, WinGetHandle } from '@ahmic/autoit-js'; * * const windowHandle = await WinGetHandle('Untitled - Notepad'); * const controlHandle = await ControlGetHandle(windowHandle, 'SysListView32'); * * const itemCount = await ControlListViewByHandle(windowHandle, controlHandle, ListViewCommand.GetItemCount); * * console.log(itemCount); // Output: "5" * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/ControlListView.htm */ export declare function ControlListViewByHandle(windowHandle: bigint, controlHandle: bigint, command: ListViewCommand, option1?: string, option2?: string, characterCount?: number): Promise;