import { _classPrivateFieldInitSpec } from "../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/classPrivateFieldInitSpec.mjs";
import { _classPrivateFieldSet2 } from "../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/classPrivateFieldSet2.mjs";
import { _classPrivateFieldGet2 } from "../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/classPrivateFieldGet2.mjs";
import { PeerDidNumAlgo } from "@credo-ts/core";

//#region ../didcomm/src/modules/connections/DidCommConnectionsModuleConfig.ts
var _autoAcceptConnections = /* @__PURE__ */ new WeakMap();
var _peerNumAlgoForDidExchangeRequests = /* @__PURE__ */ new WeakMap();
var _peerNumAlgoForDidRotation = /* @__PURE__ */ new WeakMap();
var DidCommConnectionsModuleConfig = class {
	constructor(options) {
		_classPrivateFieldInitSpec(this, _autoAcceptConnections, void 0);
		_classPrivateFieldInitSpec(this, _peerNumAlgoForDidExchangeRequests, void 0);
		_classPrivateFieldInitSpec(this, _peerNumAlgoForDidRotation, void 0);
		this.options = options ?? {};
		_classPrivateFieldSet2(_autoAcceptConnections, this, this.options.autoAcceptConnections);
		_classPrivateFieldSet2(_peerNumAlgoForDidExchangeRequests, this, this.options.peerNumAlgoForDidExchangeRequests);
		_classPrivateFieldSet2(_peerNumAlgoForDidRotation, this, this.options.peerNumAlgoForDidRotation);
	}
	/** See {@link DidCommConnectionsModuleConfigOptions.autoAcceptConnections} */
	get autoAcceptConnections() {
		return _classPrivateFieldGet2(_autoAcceptConnections, this) ?? false;
	}
	/** See {@link DidCommConnectionsModuleConfigOptions.autoAcceptConnections} */
	set autoAcceptConnections(autoAcceptConnections) {
		_classPrivateFieldSet2(_autoAcceptConnections, this, autoAcceptConnections);
	}
	/** See {@link DidCommConnectionsModuleConfigOptions.peerNumAlgoForDidExchangeRequests} */
	get peerNumAlgoForDidExchangeRequests() {
		return _classPrivateFieldGet2(_peerNumAlgoForDidExchangeRequests, this) ?? PeerDidNumAlgo.ShortFormAndLongForm;
	}
	/** See {@link DidCommConnectionsModuleConfigOptions.peerNumAlgoForDidExchangeRequests} */
	set peerNumAlgoForDidExchangeRequests(peerNumAlgoForDidExchangeRequests) {
		_classPrivateFieldSet2(_peerNumAlgoForDidExchangeRequests, this, peerNumAlgoForDidExchangeRequests);
	}
	/** See {@link DidCommConnectionsModuleConfigOptions.peerNumAlgoForDidRotation} */
	get peerNumAlgoForDidRotation() {
		return _classPrivateFieldGet2(_peerNumAlgoForDidRotation, this) ?? PeerDidNumAlgo.ShortFormAndLongForm;
	}
	/** See {@link DidCommConnectionsModuleConfigOptions.peerNumAlgoForDidRotation} */
	set peerNumAlgoForDidRotation(peerNumAlgoForDidRotation) {
		_classPrivateFieldSet2(_peerNumAlgoForDidRotation, this, peerNumAlgoForDidRotation);
	}
};

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