"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClientInvocationError = exports.ClientDisconnectedError = exports.ClientNotFoundError = exports.__ΩMeshClientRegistryBackend = exports.__ΩRegisterResult = exports.__ΩMeshClientRegistrationState = exports.__ΩRegisteredClient = void 0;
const __ΩRegisteredClient = ['TMeta', 'clientId', 'nodeId', 'connectedAt', 'metadata', 'RegisteredClient', 'b!P&4"\'4#\'4$e"!4%Mw&y'];
exports.__ΩRegisteredClient = __ΩRegisteredClient;
const __ΩMeshClientRegistrationState = ["active", "pending", 'MeshClientRegistrationState', 'P.!."Jw#y'];
exports.__ΩMeshClientRegistrationState = __ΩMeshClientRegistrationState;
const __ΩRegisterResult = ["ok", 'status', 'supersededNodeId', "conflict", 'ownerNodeId', 'RegisterResult', 'PP.!4"P\',J4#MP.$4"P\',J4%MJw&y'];
exports.__ΩRegisterResult = __ΩRegisterResult;
const __ΩMeshClientRegistryBackend = ['TMeta', 'clientId', 'nodeId', 'metadata', 'allowSupersede', () => __ΩRegisterResult, 'register', () => __ΩRegisterResult, 'reserve', 'activate', 'unregister', 'updateMetadata', () => __ΩRegisteredClient, 'getClient', () => __ΩRegisteredClient, 'listClients', () => __ΩRegisteredClient, 'listClientsForNode', () => __ΩRegisteredClient, 'cleanupNode', 'MeshClientRegistryBackend', 'b!PP&2"\'2#e#!2$)2%8n&`1\'P&2"\'2#e#!2$)2%8n(`1)P&2"\'2#e#!2$)`1*P&2"\'2#)`1+P&2"\'2#e#!2$)`1,P&2"Pe$!o-"-J`1.Pe#!o/"F`10P\'2#e#!o1"F`12P\'2#e#!o3"F`14Mw5y'];
exports.__ΩMeshClientRegistryBackend = __ΩMeshClientRegistryBackend;
class ClientNotFoundError extends Error {
    constructor(clientId) {
        super(`Client not found: ${clientId}`);
        this.name = 'ClientNotFoundError';
    }
}
exports.ClientNotFoundError = ClientNotFoundError;
ClientNotFoundError.__type = [() => Error, 'clientId', 'constructor', 'ClientNotFoundError', 'P7!P&2""0#5w$'];
class ClientDisconnectedError extends Error {
    constructor(clientId) {
        super(`Client disconnected: ${clientId}`);
        this.name = 'ClientDisconnectedError';
    }
}
exports.ClientDisconnectedError = ClientDisconnectedError;
ClientDisconnectedError.__type = [() => Error, 'clientId', 'constructor', 'ClientDisconnectedError', 'P7!P&2""0#5w$'];
class ClientInvocationError extends Error {
    constructor(message) {
        super(message);
        this.name = 'ClientInvocationError';
    }
}
exports.ClientInvocationError = ClientInvocationError;
ClientInvocationError.__type = [() => Error, 'message', 'constructor', 'ClientInvocationError', 'P7!P&2""0#5w$'];
//# sourceMappingURL=types.js.map