import { __decorateMetadata } from "../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.mjs";
import { __decorate } from "../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.mjs";
import { TimingDecorator } from "./TimingDecorator.mjs";
import { Expose, Type } from "class-transformer";
import { IsInstance, IsOptional, ValidateNested } from "class-validator";

//#region ../didcomm/src/decorators/timing/TimingDecoratorExtension.ts
function TimingDecorated(Base) {
	var _ref;
	class TimingDecoratorExtension extends Base {
		setTiming(options) {
			this.timing = new TimingDecorator(options);
		}
	}
	__decorate([
		Expose({ name: "~timing" }),
		Type(() => TimingDecorator),
		ValidateNested(),
		IsInstance(TimingDecorator),
		IsOptional(),
		__decorateMetadata("design:type", typeof (_ref = typeof TimingDecorator !== "undefined" && TimingDecorator) === "function" ? _ref : Object)
	], TimingDecoratorExtension.prototype, "timing", void 0);
	return TimingDecoratorExtension;
}

//#endregion
export { TimingDecorated };
//# sourceMappingURL=TimingDecoratorExtension.mjs.map