/** * Enumeration of mouse buttons. */ export declare enum MouseButton { /** Left mouse button */ Left = "left", /** Middle mouse button (scroll wheel) */ Middle = "middle", /** Right mouse button */ Right = "right", /** The user configured primary mouse button (can be left or right) */ Primary = "primary", /** The user configured primary mouse button (can be left or right) */ Main = "main", /** The user configured secondary mouse button (can be left or right) */ Secondary = "secondary", /** The user configured secondary mouse button (can be left or right) */ Menu = "menu" } /** * Simulates a mouse click at the specified coordinates. * * @param button The mouse button to click. See {@linkcode MouseButton} for details. * @param x The X coordinate to click at. * @param y The Y coordinate to click at. * @param clicks The number of times to click. * @param speed The speed of the click (1 is fast, 100 is slow). * * @returns 1 if successful, 0 otherwise * * @example * ```typescript * import { MouseClickSync, MouseButton } from '@ahmic/autoit-js'; * * MouseClickSync(MouseButton.Left, 150, 150, 2, 10); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/MouseClick.htm */ export declare function MouseClickSync(button?: MouseButton, x?: number, y?: number, clicks?: number, speed?: number): number; /** * Simulates a mouse click at the specified coordinates. * * @param button The mouse button to click. See {@linkcode MouseButton} for details. * @param x The X coordinate to click at. * @param y The Y coordinate to click at. * @param clicks The number of times to click. * @param speed The speed of the click (1 is fast, 100 is slow). * * @returns A promise that resolves to 1 if successful, or 0 otherwise. * * @example * ```typescript * import { MouseClick, MouseButton } from '@ahmic/autoit-js'; * * await MouseClick(MouseButton.Left, 150, 150, 2, 10); * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/MouseClick.htm */ export declare function MouseClick(button?: MouseButton, x?: number, y?: number, clicks?: number, speed?: number): Promise;