import { __commonJS } from "../../../../_virtual/rolldown_runtime.mjs";
import { require_lib } from "../../../@xmldom/xmldom/lib/index.mjs";

//#region ../../node_modules/samlify/build/src/api.js
var require_api = /* @__PURE__ */ __commonJS({ "../../node_modules/samlify/build/src/api.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.setDOMParserOptions = exports.setSchemaValidator = exports.getContext = void 0;
	var xmldom_1 = require_lib();
	var context = {
		validate: void 0,
		dom: new xmldom_1.DOMParser()
	};
	function getContext() {
		return context;
	}
	exports.getContext = getContext;
	function setSchemaValidator(params) {
		if (typeof params.validate !== "function") throw new Error("validate must be a callback function having one argument as xml input");
		context.validate = params.validate;
	}
	exports.setSchemaValidator = setSchemaValidator;
	function setDOMParserOptions(options) {
		if (options === void 0) options = {};
		context.dom = new xmldom_1.DOMParser(options);
	}
	exports.setDOMParserOptions = setDOMParserOptions;
}) });

//#endregion
export default require_api();

export { require_api };
//# sourceMappingURL=api.mjs.map