import type { CodegenConfig } from './codegen.js'; /** * Generate a Next.js server action TypeScript file from the codegen config. * * The generated file: * - Has a `"use server"` directive * - Imports the Zod schema (no @zod-to-form/* imports) * - Declares a typed FormState type * - Exports an async action that validates formData via safeParse * - Returns fieldErrors on validation failure or a success message on pass */ export declare function generateServerAction(config: CodegenConfig): Promise; //# sourceMappingURL=server-action.d.ts.map