import { TenantRoutingRecord } from "./TenantRoutingRecord.mjs";
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 { __decorateParam } from "../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateParam.mjs";
import { EventEmitter, InjectionSymbols, Repository, inject, injectable } from "@credo-ts/core";

//#region ../tenants/src/repository/TenantRoutingRepository.ts
var _ref;
let TenantRoutingRepository = class TenantRoutingRepository$1 extends Repository {
	constructor(storageService, eventEmitter) {
		super(TenantRoutingRecord, storageService, eventEmitter);
	}
	findByRecipientKey(agentContext, publicJwk) {
		return this.findSingleByQuery(agentContext, { recipientKeyFingerprint: publicJwk.fingerprint });
	}
};
TenantRoutingRepository = __decorate([
	injectable(),
	__decorateParam(0, inject(InjectionSymbols.StorageService)),
	__decorateMetadata("design:paramtypes", [Object, typeof (_ref = typeof EventEmitter !== "undefined" && EventEmitter) === "function" ? _ref : Object])
], TenantRoutingRepository);

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