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 { ServiceDecorator } from "./ServiceDecorator.mjs";
import { Expose, Type } from "class-transformer";
import { IsOptional, ValidateNested } from "class-validator";

//#region ../didcomm/src/decorators/service/ServiceDecoratorExtension.ts
function ServiceDecorated(Base) {
	var _ref;
	class ServiceDecoratorExtension extends Base {
		setService(serviceData) {
			this.service = new ServiceDecorator(serviceData);
		}
	}
	__decorate([
		Expose({ name: "~service" }),
		Type(() => ServiceDecorator),
		IsOptional(),
		ValidateNested(),
		__decorateMetadata("design:type", typeof (_ref = typeof ServiceDecorator !== "undefined" && ServiceDecorator) === "function" ? _ref : Object)
	], ServiceDecoratorExtension.prototype, "service", void 0);
	return ServiceDecoratorExtension;
}

//#endregion
export { ServiceDecorated };
//# sourceMappingURL=ServiceDecoratorExtension.mjs.map