

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_W3cCredentialService = require('./W3cCredentialService.js');
let tsyringe = require("tsyringe");
tsyringe = require_rolldown_runtime.__toESM(tsyringe);

//#region src/modules/vc/W3cCredentialsApi.ts
var _ref, _ref2;
let W3cCredentialsApi = class W3cCredentialsApi$1 {
	constructor(agentContext, w3cCredentialService) {
		this.agentContext = agentContext;
		this.w3cCredentialService = w3cCredentialService;
	}
	async storeCredential(options) {
		return this.w3cCredentialService.storeCredential(this.agentContext, options);
	}
	async removeCredentialRecord(id) {
		return this.w3cCredentialService.removeCredentialRecord(this.agentContext, id);
	}
	async getAllCredentialRecords() {
		return this.w3cCredentialService.getAllCredentialRecords(this.agentContext);
	}
	async getCredentialRecordById(id) {
		return this.w3cCredentialService.getCredentialRecordById(this.agentContext, id);
	}
	async findCredentialRecordsByQuery(query, queryOptions) {
		return this.w3cCredentialService.findCredentialsByQuery(this.agentContext, query, queryOptions);
	}
	async signCredential(options) {
		return this.w3cCredentialService.signCredential(this.agentContext, options);
	}
	async verifyCredential(options) {
		return this.w3cCredentialService.verifyCredential(this.agentContext, options);
	}
	async createPresentation(options) {
		return this.w3cCredentialService.createPresentation(options);
	}
	async signPresentation(options) {
		return this.w3cCredentialService.signPresentation(this.agentContext, options);
	}
	async verifyPresentation(options) {
		return this.w3cCredentialService.verifyPresentation(this.agentContext, options);
	}
};
W3cCredentialsApi = 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_W3cCredentialService.W3cCredentialService !== "undefined" && require_W3cCredentialService.W3cCredentialService) === "function" ? _ref2 : Object])], W3cCredentialsApi);

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