UNPKG

@ahmic/autoit-js

Version:
31 lines (30 loc) 811 B
/** * Pauses the script execution for a specified amount of time. * * @param milliseconds The number of milliseconds to pause. * * @example * ```typescript * import { SleepSync } from '@ahmic/autoit-js'; * * SleepSync(1000); // Pauses for 1 second * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/Sleep.htm */ export declare function SleepSync(milliseconds: number): void; /** * Pauses the script execution for a specified amount of time. * * @param milliseconds The number of milliseconds to pause. * * @example * ```typescript * import { Sleep } from '@ahmic/autoit-js'; * * await Sleep(1000); // Pauses for 1 second * ``` * * @see https://www.autoitscript.com/autoit3/docs/functions/Sleep.htm */ export declare function Sleep(milliseconds: number): Promise<void>;