import { z } from "zod";
//#region src/contracts/validators/shared.ts
const NunjucksFilterMapSchema = z.record(z.string(), 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 = z.union([z.string(), z.custom((val) => typeof val === "function", { message: "Transform must be a string expression, file:// path, or a function (Node.js package)" })]);
//#endregion
export { StringOrFunctionSchema as n, NunjucksFilterMapSchema as t };

//# sourceMappingURL=shared-pMqfv2Z7.js.map