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

//#region ../didcomm/src/modules/connections/models/DidCommConnection.ts
var _ref;
var DidCommConnection = class {
	constructor(options) {
		if (options) {
			this.did = options.did;
			this.didDoc = options.didDoc;
		}
	}
};
__decorate([
	IsString(),
	Expose({ name: "DID" }),
	__decorateMetadata("design:type", String)
], DidCommConnection.prototype, "did", void 0);
__decorate([
	Expose({ name: "DIDDoc" }),
	Type(() => DidDoc),
	ValidateNested(),
	IsInstance(DidDoc),
	IsOptional(),
	__decorateMetadata("design:type", typeof (_ref = typeof DidDoc !== "undefined" && DidDoc) === "function" ? _ref : Object)
], DidCommConnection.prototype, "didDoc", void 0);

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