UNPKG

android-tools-bin

Version:

Pre-built binaries for android tools such as adb, fastboot and heimdall.

17 lines (16 loc) 982 B
/// <reference types="node" /> /** Get base directory path for debugging */ export declare function getAndroidToolBaseDir(platform?: NodeJS.Platform, arch?: NodeJS.Architecture): string; export type Tool = "adb" | "fastboot" | "heimdall" | "mke2fs"; export type NativeSelector = { [tool in Tool]?: boolean; } & { all?: boolean; }; /** Returns path to an android tool. If the env var USE_SYSTEM_<tool> where <tool> is the capitalized name of the tool is set, the function will return the native tool for that tool accordingly. If the env var USE_NATIVE_SYSTEM_TOOLS is said, all tools will return the native tools. */ export declare function getAndroidToolPath(tool: Tool, optimistic?: boolean, native?: NativeSelector, platform?: NodeJS.Platform, arch?: NodeJS.Architecture): string; declare const _default: { getAndroidToolPath: (tool: Tool, optimistic?: boolean, native?: NativeSelector) => string; getAndroidToolBaseDir: () => string; }; export default _default;