// SPDX-FileCopyrightText: 2026 Stan Grams <sjg@haxx.space>
//
// SPDX-License-Identifier: GPL-2.0-or-later

//! Protocol conversion utilities for trx-rs.
//!
//! This crate provides centralized utilities for converting between client and rig protocols,
//! handling authentication tokens, and parsing mode strings.

pub mod auth;
pub mod codec;
pub mod decoders;
pub mod mapping;
pub mod types;

// Re-export commonly used items
pub use auth::{NoAuthValidator, SimpleTokenValidator, TokenValidator};
pub use codec::{mode_to_string, parse_envelope, parse_mode};
pub use decoders::{DecoderActivation, DecoderDescriptor, DECODER_REGISTRY};
pub use mapping::{client_command_to_rig, rig_command_to_client};
pub use types::{ClientCommand, ClientEnvelope, ClientResponse, MeterUpdate, RigEntry};
