require("./rolldown-runtime-D_mwlA32.cjs");
let zod = require("zod");
//#region src/contracts/validators/shared.ts
const NunjucksFilterMapSchema = zod.z.record(zod.z.string(), zod.z.custom((v) => typeof v === "function"));
/**
* Zod schema accepting a string or a function.
* Used for transform fields that accept inline JS expressions, file:// references,
* or direct functions when using the Node.js package.
*/
const StringOrFunctionSchema = zod.z.union([zod.z.string(), zod.z.custom((val) => typeof val === "function", { message: "Transform must be a string expression, file:// path, or a function (Node.js package)" })]);
//#endregion
Object.defineProperty(exports, "NunjucksFilterMapSchema", {
	enumerable: true,
	get: function() {
		return NunjucksFilterMapSchema;
	}
});
Object.defineProperty(exports, "StringOrFunctionSchema", {
	enumerable: true,
	get: function() {
		return StringOrFunctionSchema;
	}
});

//# sourceMappingURL=shared-CT0cbsKY.cjs.map