#pragma once

#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>

int webusb_transport_init(void);
int webusb_recv_frame(uint8_t *payload, size_t payload_max, size_t *out_len);
int webusb_send_frame(const uint8_t *payload, size_t len);
bool webusb_transport_connected(void);
