/** * scaffold.ts — Recipe-driven project scaffolding for create-litro. * * At runtime the compiled bin is dist/src/index.js and recipes live at * dist/recipes//. This module resolves recipe directories relative to * import.meta.url so it works regardless of CWD. * * No external dependencies — uses Node.js built-ins only. */ import type { LitroRecipe } from './types.js'; export interface ScaffoldOptions { projectName: string; mode: 'ssg' | 'ssr'; adapter?: 'lit' | 'fast' | 'elena'; recipeOptions?: Record; recipeVersion?: string; } /** * Return `LitroRecipe` objects for all recipe directories found under * dist/recipes/. Each recipe must have a `recipe.config.js` file that * exports a default `LitroRecipe`. */ export declare function listRecipes(): Promise; /** * Load a single recipe by name. Returns null if not found. */ export declare function loadRecipe(name: string): Promise; /** * Scaffold a project from a recipe into `targetDir`. * * @param recipeName The recipe directory name (e.g. "fullstack"). * @param options Scaffold options (projectName, mode, etc.). * @param targetDir Absolute path to the target project directory. */ export declare function scaffold(recipeName: string, options: ScaffoldOptions, targetDir: string): Promise; //# sourceMappingURL=scaffold.d.ts.map