import { FallbackIR } from "../../types.js"; import { SlowGen } from "../context.js"; //#region src/core/codegen/schemas/fallback.d.ts declare function slowFallback(ir: FallbackIR, g: SlowGen): string; /** * Delegate a cold slow-walk leaf to a pristine retained Zod schema. * * The schema is run through `_zod.run` and its RAW payload read, not through * `safeParse`: the payload is where zod's per-issue `continue` flags and the * `aborted` bit still exist, and a plain union prunes its options on exactly * those (see ZC_RUN_DELEGATE_DECL). The issues are then finalized by zod's own * `finalizeIssue` and re-homed under this node's path (ZC_DELEGATE_ISSUES_DECL), * so what lands in the validator's list is what `safeParse` would have built, * plus a `continue:false` marker on each aborting issue that the top-level * finalizer strips again. The per-call `{async:false}` ctx is the one zod's * `_safeParse` allocates, handed to both `run` and `finalizeIssue` as zod does. * * `payload.aborted` — set by a pipe whose `in` failed — is forwarded only when * this delegate IS a union option (`g.aborted` bound). Nested deeper it is * dropped, as zod's `handlePropertyResult` drops it: only the issues travel up. */ declare function slowZodDelegate(refIndex: number, g: SlowGen, onFailure?: string): string; //#endregion export { slowFallback, slowZodDelegate }; //# sourceMappingURL=fallback.d.ts.map