shellx-ai
Version:
shellx is a powerful WebSocket-based client for controlling shell commands and UI automation on remote devices.
19 lines (18 loc) • 625 B
TypeScript
export declare const wait: (ms: number) => Promise<void>;
/**
* 安全地获取环境变量,兼容浏览器和Node.js环境
*/
export declare function getEnvVar(key: string): string | undefined;
/**
* 安全地设置环境变量,兼容浏览器和Node.js环境
*/
export declare function setEnvVar(key: string, value: string): void;
/**
* 安全地删除环境变量,兼容浏览器和Node.js环境
*/
export declare function deleteEnvVar(key: string): void;
/**
* 检查并获取 WebSocket URL 环境变量
* 如果未设置则显示错误并抛出异常
*/
export declare function getWebSocketUrl(): string;