import { ManagerOptions, SocketOptions } from "socket.io-client"; import { Runner } from "./core/Runner"; import { WsHandler } from "./core/WsHandler"; export declare enum EVENTS { IS_FILE_EXIST = "is_file_exist", WRITE_FILE = "write_file", RM = "rm", READ_DIR = "read_dir", READ_FILE = "read_file", EXEC_LOCAL_SCRIPT = "exec_local_script", EXEC_REMOTE_SCRIPT = "exec_remote_script", SCRIPT_QUEUE = "script_queue", INTERRUPT_SCRIPT = "interrupt_script", UNDO_SCRIPT = "undo_script", REPORT_RESULT = "report_result" } export type Context = { runner: Runner; ws: WsHandler; }; export type ScriptJob = { id: string; type: 'local' | 'remote'; filename?: string; script?: string; params?: any; gatewayName?: string; }; export declare enum PushJobResult { SUCCESS = "success", SUCCESS_IN_QUEUE = "success_in_queue", FAILED = "failed", QUEUE_FULL = "queue_full", FILE_SAVE_FAILED = "file_save_failed" } export type GatewayConfig = { name: string; uri: string; opts?: Partial; onSocketInit?: (socket: any) => void; }; export type ClientOptions = { capacity?: number; timeout?: number; minInterval?: number; gateways: GatewayConfig[]; deviceName?: string; }; export declare function resolveAndValidate(basePath: string): string; export declare function getSctiptFilePath(filename: string): void; export declare function getScreenshotFilePath(filename: string): void; export declare function saveScriptFile(filename: string, script: string): Promise;