"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.WireguardError = exports.SuccessErrno = void 0;
var Schema = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("@effect/schema/Schema"));
var Data = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("effect/Data"));
var Function = /*#__PURE__*/_interopRequireWildcard( /*#__PURE__*/require("effect/Function"));
function _getRequireWildcardCache(e) {
  if ("function" != typeof WeakMap) return null;
  var r = new WeakMap(),
    t = new WeakMap();
  return (_getRequireWildcardCache = function (e) {
    return e ? t : r;
  })(e);
}
function _interopRequireWildcard(e, r) {
  if (!r && e && e.__esModule) return e;
  if (null === e || "object" != typeof e && "function" != typeof e) return {
    default: e
  };
  var t = _getRequireWildcardCache(r);
  if (t && t.has(e)) return t.get(e);
  var n = {
      __proto__: null
    },
    a = Object.defineProperty && Object.getOwnPropertyDescriptor;
  for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
    var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
    i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
  }
  return n.default = e, t && t.set(e, n), n;
}
/**
 * Wireguard errors
 *
 * @since 1.0.0
 */

/**
 * A wireguard userspace api Errno return message.
 *
 * @since 1.0.0
 * @category Errors
 */
const SuccessErrno = exports.SuccessErrno = /*#__PURE__*/Function.pipe( /*#__PURE__*/Schema.templateLiteral( /*#__PURE__*/Schema.literal("errno="), /*#__PURE__*/Schema.literal(0)), /*#__PURE__*/Schema.identifier("SuccessErrno"), /*#__PURE__*/Schema.description("A successful errno"), /*#__PURE__*/Schema.brand("SuccessErrno"));
/**
 * @since 1.0.0
 * @category Errors
 */
class WireguardError extends Data.TaggedError("WireguardError") {}
exports.WireguardError = WireguardError;
//# sourceMappingURL=WireguardErrors.js.map