text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  exports.jsonSchema = exports.fromString = exports.empty = exports.isUuid = exports.regex = exports.uuid = void 0;
  const util_1 = require("util");
  const uuid_1 = require("uuid");
  const regex = {
      v4: /(?:^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u,
      v5: /(?:^[a-f0-9]{8}-[a-f0-9]{4}-5[a-f0-9]{3}-[a-f0-9]{4}-[a-f0-9]{12}$)|(?:^0{8}-0{4}-0{4}-0{4}-0{12}$)/u
  };
  exports.regex = regex;
  const jsonSchema = {
      /* eslint-disable @typescript-eslint/no-base-to-string */
      v4: { type: 'string', pattern: regex.v4.toString().slice(1, -2) },
      v5: { type: 'string', pattern: regex.v5.toString().slice(1, -2) }
      /* eslint-enable @typescript-eslint/no-base-to-string */
  };
  exports.jsonSchema = jsonSchema;
  const uuidv4 = util_1.deprecate(() => uuid_1.v4(), 'uuidv4() is deprecated. Use v4() from the uuid module instead.');
  exports.uuid = uuidv4;
  const isUuid = util_1.deprecate((value) => uuid_1.validate(value), 'isUuid() is deprecated. Use validate() from the uuid module instead.');
  exports.isUuid = isUuid;
  const empty = util_1.deprecate(() => uuid_1.NIL, 'empty() is deprecated. Use NIL from the uuid module instead.');
  exports.empty = empty;
  const fromString = util_1.deprecate((text, namespace = 'bb5d0ffa-9a4c-4d7c-8fc2-0a7d2220ba45') => uuid_1.v5(text, namespace), 'fromString() is deprecated. Use v5() from the uuid module instead.');
  exports.fromString = fromString;
  