const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.js');
const require_index = require('../../../../../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/cjs/index.js');
const require_index$1 = require('../../../../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/index.js');
const require_decorateMetadata = require('../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
const require_decorate = require('../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');

//#region ../didcomm/src/decorators/timing/TimingDecorator.ts
var import_cjs = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_index.require_cjs());
var import_cjs$1 = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_index$1.require_cjs());
var _ref, _ref2, _ref3, _ref4, _ref5;
/**
* Represents `~timing` decorator
* @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0032-message-timing/README.md
*/
var TimingDecorator = class {
	constructor(partial) {
		this.inTime = partial?.inTime;
		this.outTime = partial?.outTime;
		this.staleTime = partial?.staleTime;
		this.expiresTime = partial?.expiresTime;
		this.delayMilli = partial?.delayMilli;
		this.waitUntilTime = partial?.waitUntilTime;
	}
};
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "in_time" }),
	(0, import_cjs.Type)(() => Date),
	(0, import_cjs$1.IsDate)(),
	(0, import_cjs$1.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref = typeof Date !== "undefined" && Date) === "function" ? _ref : Object)
], TimingDecorator.prototype, "inTime", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "out_time" }),
	(0, import_cjs.Type)(() => Date),
	(0, import_cjs$1.IsDate)(),
	(0, import_cjs$1.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref2 = typeof Date !== "undefined" && Date) === "function" ? _ref2 : Object)
], TimingDecorator.prototype, "outTime", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "stale_time" }),
	(0, import_cjs.Type)(() => Date),
	(0, import_cjs$1.IsDate)(),
	(0, import_cjs$1.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref3 = typeof Date !== "undefined" && Date) === "function" ? _ref3 : Object)
], TimingDecorator.prototype, "staleTime", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "expires_time" }),
	(0, import_cjs.Type)(() => Date),
	(0, import_cjs$1.IsDate)(),
	(0, import_cjs$1.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref4 = typeof Date !== "undefined" && Date) === "function" ? _ref4 : Object)
], TimingDecorator.prototype, "expiresTime", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "delay_milli" }),
	(0, import_cjs$1.IsNumber)(),
	(0, import_cjs$1.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", Number)
], TimingDecorator.prototype, "delayMilli", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "wait_until_time" }),
	(0, import_cjs.Type)(() => Date),
	(0, import_cjs$1.IsDate)(),
	(0, import_cjs$1.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref5 = typeof Date !== "undefined" && Date) === "function" ? _ref5 : Object)
], TimingDecorator.prototype, "waitUntilTime", void 0);

//#endregion
exports.TimingDecorator = TimingDecorator;