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');
const require_BaseDidCommMessage = require('../../BaseDidCommMessage.js');
const require_messageType = require('../../util/messageType.js');

//#region ../didcomm/src/decorators/signature/SignatureDecorator.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());
/**
* Represents `[field]~sig` decorator
* @see https://github.com/hyperledger/aries-rfcs/blob/master/features/0234-signature-decorator/README.md
*/
var SignatureDecorator = class {
	constructor(options) {
		if (options) {
			this.signatureType = options.signatureType;
			this.signatureData = options.signatureData;
			this.signer = options.signer;
			this.signature = options.signature;
		}
	}
};
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "@type" }),
	(0, import_cjs.Transform)(({ value }) => require_messageType.replaceLegacyDidSovPrefix(value), { toClassOnly: true }),
	(0, import_cjs$1.Matches)(require_BaseDidCommMessage.MessageTypeRegExp),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], SignatureDecorator.prototype, "signatureType", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "sig_data" }),
	(0, import_cjs$1.IsString)(),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], SignatureDecorator.prototype, "signatureData", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "signer" }),
	(0, import_cjs$1.IsString)(),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], SignatureDecorator.prototype, "signer", void 0);
require_decorate.__decorate([
	(0, import_cjs.Expose)({ name: "signature" }),
	(0, import_cjs$1.IsString)(),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], SignatureDecorator.prototype, "signature", void 0);

//#endregion
exports.SignatureDecorator = SignatureDecorator;