/** * Platform-dispatched UI element fetching. * * Consolidates the repeated if/else chains that appear in ui_tree, * ui_find, ui_analyze, ui_wait, ui_assert_visible, ui_assert_gone, etc. */ import type { ToolContext } from "../context.js"; import type { Platform } from "../../device-manager.js"; import { UiElement } from "../../adb/ui-parser.js"; export interface GetUiElementsResult { elements: UiElement[]; /** Raw hierarchy string (only for desktop/ios when needed) */ rawTree?: string; } /** * Fetch and parse UI elements for the given platform. * * Side-effect: updates the cached elements via ctx.setCachedElements(). */ export declare function getUiElements(ctx: ToolContext, platform: Platform | string | undefined): Promise; //# sourceMappingURL=get-elements.d.ts.map