import type { CodegenConfig } from '@zod-to-form/core'; import type { ModuleNamespace } from '../config/load.js'; import type { Z2FViteConfig } from '../types.js'; export interface CompileTargetInput { /** The module namespace returned by `ssrLoadModule` / `this.load`. */ namespace: ModuleNamespace; /** Absolute path to the schema source file (used in error messages). */ schemaFile: string; /** Variant name (`''` for the default target). */ variant: string; /** The full plugin-side config, before variant merging. */ config: Z2FViteConfig; } export interface CompileTargetResult { /** The generated `.tsx` source string. */ generatedSource: string; /** The companion `.lite.ts` source, or `null` if no top-level effects. */ schemaLiteSource: string | null; /** The effective config used for this compilation (post variant merge). */ effectiveConfig: CodegenConfig; /** The selected export name from the schema module namespace. */ exportName: string; } /** * Pick the schema, walk it, generate the form. This is the function every * other entry point (load hook, build pipeline, integration tests) calls. * * Note on the type cast for `walkSchema`: `walkSchema` accepts a `$ZodType` * and we just verified the value structurally has `_zod`, so the cast is * sound. The structural check happens inside `selectExport`. */ export declare function compileTarget(input: CompileTargetInput): CompileTargetResult; //# sourceMappingURL=transform.d.ts.map