const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.js');
const require_MetadataStorage$1 = require('./metadata/MetadataStorage.js');
const require_ValidationError$1 = require('./validation/ValidationError.js');
const require_ValidationTypes$1 = require('./validation/ValidationTypes.js');
const require_Validator$1 = require('./validation/Validator.js');
const require_container$1 = require('./container.js');
const require_register_decorator$1 = require('./register-decorator.js');
const require_ValidationOptions$1 = require('./decorator/ValidationOptions.js');
const require_decorators$1 = require('./decorator/decorators.js');
const require_ValidatorConstraintInterface$1 = require('./validation/ValidatorConstraintInterface.js');
const require_ValidatorOptions$1 = require('./validation/ValidatorOptions.js');
const require_ValidationArguments$1 = require('./validation/ValidationArguments.js');
const require_ValidationSchema$1 = require('./validation-schema/ValidationSchema.js');

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/index.js
var require_cjs = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/index.js": ((exports) => {
	var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
		if (k2 === void 0) k2 = k;
		var desc = Object.getOwnPropertyDescriptor(m, k);
		if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
			enumerable: true,
			get: function() {
				return m[k];
			}
		};
		Object.defineProperty(o, k2, desc);
	}) : (function(o, m, k, k2) {
		if (k2 === void 0) k2 = k;
		o[k2] = m[k];
	}));
	var __exportStar = exports && exports.__exportStar || function(m, exports$1) {
		for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
	};
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.registerSchema = exports.validateSync = exports.validateOrReject = exports.validate = void 0;
	const MetadataStorage_1 = require_MetadataStorage$1.require_MetadataStorage();
	const Validator_1 = require_Validator$1.require_Validator();
	const container_1 = require_container$1.require_container();
	__exportStar(require_container$1.require_container(), exports);
	__exportStar(require_decorators$1.require_decorators(), exports);
	__exportStar(require_ValidationOptions$1.require_ValidationOptions(), exports);
	__exportStar(require_ValidatorConstraintInterface$1.require_ValidatorConstraintInterface(), exports);
	__exportStar(require_ValidationError$1.require_ValidationError(), exports);
	__exportStar(require_ValidatorOptions$1.require_ValidatorOptions(), exports);
	__exportStar(require_ValidationArguments$1.require_ValidationArguments(), exports);
	__exportStar(require_ValidationTypes$1.require_ValidationTypes(), exports);
	__exportStar(require_Validator$1.require_Validator(), exports);
	__exportStar(require_ValidationSchema$1.require_ValidationSchema(), exports);
	__exportStar(require_register_decorator$1.require_register_decorator(), exports);
	__exportStar(require_MetadataStorage$1.require_MetadataStorage(), exports);
	/**
	* Validates given object by object's decorators or given validation schema.
	*/
	function validate(schemaNameOrObject, objectOrValidationOptions, maybeValidatorOptions) {
		if (typeof schemaNameOrObject === "string") return (0, container_1.getFromContainer)(Validator_1.Validator).validate(schemaNameOrObject, objectOrValidationOptions, maybeValidatorOptions);
		else return (0, container_1.getFromContainer)(Validator_1.Validator).validate(schemaNameOrObject, objectOrValidationOptions);
	}
	exports.validate = validate;
	/**
	* Validates given object by object's decorators or given validation schema and reject on error.
	*/
	function validateOrReject(schemaNameOrObject, objectOrValidationOptions, maybeValidatorOptions) {
		if (typeof schemaNameOrObject === "string") return (0, container_1.getFromContainer)(Validator_1.Validator).validateOrReject(schemaNameOrObject, objectOrValidationOptions, maybeValidatorOptions);
		else return (0, container_1.getFromContainer)(Validator_1.Validator).validateOrReject(schemaNameOrObject, objectOrValidationOptions);
	}
	exports.validateOrReject = validateOrReject;
	/**
	* Validates given object by object's decorators or given validation schema.
	* Note that this method completely ignores async validations.
	* If you want to properly perform validation you need to call validate method instead.
	*/
	function validateSync(schemaNameOrObject, objectOrValidationOptions, maybeValidatorOptions) {
		if (typeof schemaNameOrObject === "string") return (0, container_1.getFromContainer)(Validator_1.Validator).validateSync(schemaNameOrObject, objectOrValidationOptions, maybeValidatorOptions);
		else return (0, container_1.getFromContainer)(Validator_1.Validator).validateSync(schemaNameOrObject, objectOrValidationOptions);
	}
	exports.validateSync = validateSync;
	/**
	* Registers a new validation schema.
	*/
	function registerSchema(schema) {
		(0, MetadataStorage_1.getMetadataStorage)().addValidationSchema(schema);
	}
	exports.registerSchema = registerSchema;
}) });

//#endregion
Object.defineProperty(exports, 'default', {
  enumerable: true,
  get: function () {
    return require_cjs();
  }
});