/** * Zod-backed `SchemaValidator` adapter. * * The default implementation of the `SchemaValidator` contract. It thinly * wraps zod so that core modules can declare schemas through the * extension-neutral DSL while still getting zod's runtime behavior. * * The entire zod surface used by the contract is confined to this file. * * @module extensions/ext-schema-zod/adapter */ import type { SchemaValidator } from "veryfront/extensions/schema"; /** * Build a zod-backed `SchemaValidator` instance. * * Adapter instances snapshot schemas into plain JSON and retain validators in * an entry- and weight-bounded LRU cache. Each unique validator owns an isolated * Ajv compiler, so unrelated `$id` values cannot collide or accumulate in a * process-wide registry. It is therefore safe to call this once at extension setup and pass the returned value to * `ctx.provide("SchemaValidator", …)`. Tests that need to register the * validator without full extension bootstrap can call this factory directly. */ export declare function createZodAdapter(): SchemaValidator; //# sourceMappingURL=adapter.d.ts.map