/** * ESP-IDF flash operations: UART flash and OTA-over-CDC. * * Multi-device aware: when multiple CrossPads are connected, * the user must specify a port. Auto-detects when only one is present. * * - idf_flash: runs `idf.py -p flash` (full UART flash, requires bootloader mode) * - idf_ota: runs `python tools/ota_flash.py` (OTA over CDC, no bootloader needed) */ import { OnLine } from "../utils/exec.js"; export interface FlashResult { success: boolean; method: "uart" | "ota"; port: string; duration_seconds: number; output_tail: string[]; error?: string; } export declare function crosspadIdfFlash(port: string | undefined, buildDir: string, onLine?: OnLine, signal?: AbortSignal): Promise;