/** * Firmware Upload Tools * Firmware upload operations and sequencing tools. * * Provides: * - uploadFirmware: Targets serial devices and drops compiled hex/bin. * - uploadAndMonitor: Drops firmware and attaches realtime observer. * - buildAndUpload: Compiles and dispatches binaries. */ import type { UploadResult } from "../types.js"; /** * Uploads a SPIFFS/LittleFS filesystem image to a target device. * * @param projectDir - Validated project directory root. * @param port - Target COM port or undefined to autodetect. * @param environment - Optional specific environment target. * @param verbose - If true, captures complete output without truncation. * @param background - Executes asynchronously in the background. * @returns The structured UploadResult containing success flag, port, and standard output/errors. */ export declare function uploadFilesystem(projectDir: string, port?: string, environment?: string, verbose?: boolean, background?: boolean, startMonitorAfter?: boolean, maxRunDurationSeconds?: number): Promise; /** * Uploads a compiled firmware binary to a target device. * * @param projectDir - Validated project directory root. * @param port - Target COM port or undefined to autodetect. * @param environment - Optional specific environment target. * @param verbose - If true, captures complete output without truncation. * @param background - Executes asynchronously in the background. * @returns The structured UploadResult containing success flag, port, and standard output/errors. */ export declare function uploadFirmware(projectDir: string, port?: string, environment?: string, verbose?: boolean, background?: boolean, startMonitorAfter?: boolean, maxRunDurationSeconds?: number): Promise; /** * Uploads firmware and sequentially initiates a monitor trace. * * @param projectDir - Validated project directory root. * @param port - Target COM port or undefined to autodetect. * @param environment - Optional specific environment target. * @param verbose - If true, captures complete output without truncation. * @param background - Executes asynchronously in the background. * @returns The structured UploadResult containing success flag, port, and standard output/errors. */ export declare function uploadAndMonitor(projectDir: string, port?: string, environment?: string, verbose?: boolean, background?: boolean, startMonitorAfter?: boolean): Promise; /** * Automates a complete compilation phase followed by a firmware upload. * * @param projectDir - Validated project directory root. * @param port - Target COM port or undefined to autodetect. * @param environment - Optional specific environment target. * @param verbose - If true, captures complete output without truncation. * @param background - Executes asynchronously in the background. * @returns The structured UploadResult containing success flag, port, and standard output/errors. */ export declare function buildAndUpload(projectDir: string, port?: string, environment?: string, verbose?: boolean, background?: boolean, startMonitorAfter?: boolean): Promise; //# sourceMappingURL=upload.d.ts.map