import { MeshDevice } from "../meshDevice.js"; import { Types } from "../index.js"; /** Allows to connect to a Meshtastic device over HTTP(S) */ export declare class HttpConnection extends MeshDevice { /** Defines the connection type as http */ connType: Types.ConnectionTypeName; /** URL of the device that is to be connected to. */ protected portId: string; /** Enables receiving messages all at once, versus one per request */ private receiveBatchRequests; private readLoop; private pendingRequest; private abortController; constructor(configId?: number); /** * Initiates the connect process to a Meshtastic device via HTTP(S) */ connect({ address, fetchInterval, receiveBatchRequests, tls, }: Types.HttpConnectionParameters): Promise; /** Disconnects from the Meshtastic device */ disconnect(): void; /** Pings device to check if it is avaliable */ ping(): Promise; /** Reads any avaliable protobuf messages from the radio */ protected readFromRadio(): Promise; /** * Sends supplied protobuf message to the radio */ protected writeToRadio(data: Uint8Array): Promise; }