import { type CacheDirContext } from "./cacheDir.js"; export type AndroidSdkSource = "ANDROID_HOME" | "ANDROID_SDK_ROOT" | "cache" | "path"; export interface AndroidSdk { sdkRoot: string; source: AndroidSdkSource; adb?: string; emulator?: string; avdmanager?: string; sdkmanager?: string; } export interface AndroidSdkDeps { env?: Record; existsSync?: (candidate: string) => boolean; cacheAndroidSdk?: string; platform?: NodeJS.Platform; } /** * Detect an Android SDK, in priority order: * 1. ANDROID_HOME * 2. ANDROID_SDK_ROOT * 3. /android-sdk (where `doc-detective install android` bootstraps) * 4. adb on PATH — derive the root as the parent of platform-tools/ * * Returns the first usable root with its resolved tool paths, or null when no * SDK is found. Never throws, never spawns. Missing SDK is a gating fact (the * caller SKIPs and points at `doc-detective install android`), not an error. */ export declare function detectAndroidSdk(ctx?: CacheDirContext, deps?: AndroidSdkDeps): AndroidSdk | null; //# sourceMappingURL=androidSdk.d.ts.map