const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.js');
const require_ValidationMetadata$1 = require('../../metadata/ValidationMetadata.js');
const require_MetadataStorage$1 = require('../../metadata/MetadataStorage.js');
const require_ValidationTypes$1 = require('../../validation/ValidationTypes.js');

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/common/ValidatePromise.js
var require_ValidatePromise = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/common/ValidatePromise.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	const ValidationTypes_1 = require_ValidationTypes$1.require_ValidationTypes();
	const ValidationMetadata_1 = require_ValidationMetadata$1.require_ValidationMetadata();
	const MetadataStorage_1 = require_MetadataStorage$1.require_MetadataStorage();
	/**
	* Resolve promise before validation
	*/
	function ValidatePromise(validationOptions) {
		return function(object, propertyName) {
			const args = {
				type: ValidationTypes_1.ValidationTypes.PROMISE_VALIDATION,
				target: object.constructor,
				propertyName,
				validationOptions
			};
			(0, MetadataStorage_1.getMetadataStorage)().addValidationMetadata(new ValidationMetadata_1.ValidationMetadata(args));
		};
	}
	exports.ValidatePromise = ValidatePromise;
}) });

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