UNPKG

@aiot-toolkit/emulator

Version:

vela emulator tool.

25 lines (24 loc) 935 B
export declare const defaultDirRelativePath = "avd/running"; export declare const fileNamePattern: RegExp; export declare function getPlatform(): "darwin" | "linux" | "win32"; /** * @returns 获取模拟器配置文件目录 */ export declare function getEmulatorDefaultConfigDir(): string; export declare function getRunningAvdConfigFiles(): string[]; export interface EmulatorConfig { path: string; 'port.serial': string; 'port.adb': string; 'avd.name': string; 'avd.dir': string; 'avd.id': string; cmdline: string; 'grpc.token': string; 'grpc.port': string; [i: string]: string; } export declare function getRunningAvdConfig(): EmulatorConfig[]; export declare function getRunningVvds(): Promise<EmulatorConfig[]>; export declare function getRunningAvdConfigByName(name: string): EmulatorConfig | undefined; export declare function getRunningVvdDebugPort(name: string): string | undefined;