const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.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_decorateParam = require('../../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.js');
const require_DidCommMediationRecord = require('./DidCommMediationRecord.js');
let __credo_ts_core = require("@credo-ts/core");
__credo_ts_core = require_rolldown_runtime.__toESM(__credo_ts_core);

//#region ../didcomm/src/modules/routing/repository/DidCommMediationRepository.ts
var _ref;
let DidCommMediationRepository = class DidCommMediationRepository$1 extends __credo_ts_core.Repository {
	constructor(storageService, eventEmitter) {
		super(require_DidCommMediationRecord.DidCommMediationRecord, storageService, eventEmitter);
	}
	getSingleByRecipientKey(agentContext, recipientKey) {
		return this.getSingleByQuery(agentContext, { recipientKeys: [recipientKey] });
	}
	async getByConnectionId(agentContext, connectionId) {
		return this.getSingleByQuery(agentContext, { connectionId });
	}
};
DidCommMediationRepository = require_decorate.__decorate([
	(0, __credo_ts_core.injectable)(),
	require_decorateParam.__decorateParam(0, (0, __credo_ts_core.inject)(__credo_ts_core.InjectionSymbols.StorageService)),
	require_decorateMetadata.__decorateMetadata("design:paramtypes", [Object, typeof (_ref = typeof __credo_ts_core.EventEmitter !== "undefined" && __credo_ts_core.EventEmitter) === "function" ? _ref : Object])
], DidCommMediationRepository);

//#endregion
Object.defineProperty(exports, 'DidCommMediationRepository', {
  enumerable: true,
  get: function () {
    return DidCommMediationRepository;
  }
});