

const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.js');
const require_AgentContext = require('../../agent/context/AgentContext.js');
require('../../plugins/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');
require('../../agent/index.js');
const require_W3cV2CredentialService = require('./W3cV2CredentialService.js');
let tsyringe = require("tsyringe");
tsyringe = require_rolldown_runtime.__toESM(tsyringe);

//#region src/modules/vc/W3cV2CredentialsApi.ts
var _ref, _ref2;
let W3cV2CredentialsApi = class W3cV2CredentialsApi$1 {
	constructor(agentContext, w3cV2CredentialService) {
		this.agentContext = agentContext;
		this.w3cV2CredentialService = w3cV2CredentialService;
	}
	async storeCredential(options) {
		return this.w3cV2CredentialService.storeCredential(this.agentContext, options);
	}
	async removeCredentialRecord(id) {
		return this.w3cV2CredentialService.removeCredentialRecord(this.agentContext, id);
	}
	async getAllCredentialRecords() {
		return this.w3cV2CredentialService.getAllCredentialRecords(this.agentContext);
	}
	async getCredentialRecordById(id) {
		return this.w3cV2CredentialService.getCredentialRecordById(this.agentContext, id);
	}
	async findCredentialRecordsByQuery(query, queryOptions) {
		return this.w3cV2CredentialService.findCredentialsByQuery(this.agentContext, query, queryOptions);
	}
	async signCredential(options) {
		return this.w3cV2CredentialService.signCredential(this.agentContext, options);
	}
	async verifyCredential(options) {
		return this.w3cV2CredentialService.verifyCredential(this.agentContext, options);
	}
	async signPresentation(options) {
		return this.w3cV2CredentialService.signPresentation(this.agentContext, options);
	}
	async verifyPresentation(options) {
		return this.w3cV2CredentialService.verifyPresentation(this.agentContext, options);
	}
};
W3cV2CredentialsApi = require_decorate.__decorate([(0, tsyringe.injectable)(), require_decorateMetadata.__decorateMetadata("design:paramtypes", [typeof (_ref = typeof require_AgentContext.AgentContext !== "undefined" && require_AgentContext.AgentContext) === "function" ? _ref : Object, typeof (_ref2 = typeof require_W3cV2CredentialService.W3cV2CredentialService !== "undefined" && require_W3cV2CredentialService.W3cV2CredentialService) === "function" ? _ref2 : Object])], W3cV2CredentialsApi);

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