/// import { ResetConstructors } from "../reset"; import { Transport, SerialOptions } from "../webserial"; import { IEspLoaderTerminal } from "./loaderTerminal"; /** * Options to configure ESPLoader. * @interface LoaderOptions */ export interface LoaderOptions { /** * The transport mechanism to communicate with the device. * @type {Transport} */ transport: Transport; /** * The port to initialize the transport class. * @type {SerialPort} */ port?: SerialPort; /** * Set of options for SerialPort class. * @type {Transport} */ serialOptions?: SerialOptions; /** * The baud rate to be used for communication with the device. * @type {number} */ baudrate: number; /** * An optional terminal interface to interact with the loader during the process. * @type {IEspLoaderTerminal} */ terminal?: IEspLoaderTerminal; /** * Flag indicating whether to enable debug logging for the loader (optional). * @type {boolean} */ debugLogging?: boolean; /** * Reset functions for connection. If undefined will use default ones. * @type {ResetConstructors} */ resetConstructors?: ResetConstructors; /** * Indicate if trace messages should be enabled or not. */ enableTracing?: boolean; }