import type { ZodType } from "zod"; /** * Read, parse, and schema-validate a recipe file. The on-disk format is * picked from the file extension: * * - `.ts` / `.tsx` / `.mts` / `.cts` → transpiled + executed in the * recipe sandbox; the default export (or first named export) is * Zod-parsed. * - everything else → read as text and run through the YAML parser * (which also accepts JSON). * * Async because the TypeScript path forks a child process. All current * call sites already run inside `async` task runners or commander * `command.action(async …)` handlers. */ export declare const loadRecipe: (filePath: string, schema: ZodType) => Promise; /** Serialize a recipe to a file — JSON when the path ends `.json`, else YAML. */ export declare const writeRecipe: (filePath: string, recipe: unknown) => void;