/**
 * P2P 模块类型定义
 */
// 连接状态
export var ConnectionStatus;
(function (ConnectionStatus) {
    ConnectionStatus["IDLE"] = "idle";
    ConnectionStatus["CONNECTING"] = "connecting";
    ConnectionStatus["CONNECTED"] = "connected";
    ConnectionStatus["OFFLINE"] = "offline";
    ConnectionStatus["ERROR"] = "error";
})(ConnectionStatus || (ConnectionStatus = {}));
// 消息状态
export var MessageStatus;
(function (MessageStatus) {
    MessageStatus["PENDING"] = "pending";
    MessageStatus["SENDING"] = "sending";
    MessageStatus["SENT"] = "sent";
    MessageStatus["DELIVERED"] = "delivered";
    MessageStatus["READ"] = "read";
    MessageStatus["FAILED"] = "failed";
    MessageStatus["QUEUED"] = "queued";
})(MessageStatus || (MessageStatus = {}));
// 持久连接状态
export var PersistentConnectionStatus;
(function (PersistentConnectionStatus) {
    PersistentConnectionStatus["CONNECTED"] = "connected";
    PersistentConnectionStatus["DISCONNECTED"] = "disconnected";
    PersistentConnectionStatus["RECONNECTING"] = "reconnecting";
})(PersistentConnectionStatus || (PersistentConnectionStatus = {}));
