/** * @file * * Asks the running emulators which AVD each was started from, and resolves one * by name through {@link ./emulator-device-id.ts}'s selection. * * Every function here shells out, so the whole module is integration-time code * — which is exactly why the selection it delegates to lives in its own module * and stays unit-tested. */ /** * Parameters for {@link resolveEmulatorDeviceId}. */ export interface ResolveEmulatorDeviceIdParams { /** * The AVD name to match, e.g. `obsidian_screenshots`. */ readonly avdName: string; } /** * Finds the running emulator whose AVD is the named one. * * @param params - The AVD to match. * @returns A {@link Promise} that resolves to the device UDID to address it by. * @throws Error if no running emulator was started from that AVD. The message lists what IS running, since * "the wrong emulator is up" and "no emulator is up" need different answers. */ export declare function resolveEmulatorDeviceId(params: ResolveEmulatorDeviceIdParams): Promise;