import type { FrontendCommandContext } from '../index.ts'; import type { ApplicationPlan } from './files.ts'; import type { PackageManager } from './install.ts'; export { applyGeneration, planGeneration, recoverGeneration } from './files.ts'; export type { ApplicationPlan, PlannedFile } from './files.ts'; export { installGenerationDependencies } from './install.ts'; export type { PackageManager } from './install.ts'; /** Explicit runtime configuration owned by the host CLI. */ export interface GenerationRuntimeOptions { cwd: string; /** Required to install during apply; --skip-install avoids installation. */ packageManager?: PackageManager; signal?: AbortSignal; } /** A reviewed or applied frontend generation result. */ export interface GenerationWorkflowResult { command: 'setup' | 'generate'; applied: boolean; created: string[]; installed: boolean; plan: ApplicationPlan; recovered: boolean; } /** Runtime controls and arguments forwarded to the pure frontend dispatcher. */ export interface GenerationWorkflowArguments { apply: boolean; forwarded: string[]; resume: boolean; skipInstall: boolean; } /** * Validate runtime flags before host authentication or filesystem operations. * @param args Arguments starting with setup or generate. * @returns Runtime controls and pure command arguments. * @throws {Error} For repeated or conflicting runtime flags. */ export declare const parseGenerationWorkflowArguments: (args: string[]) => GenerationWorkflowArguments; /** * Plan or apply standalone generation using native filesystem and process APIs. * @param args Arguments after the host's c15t namespace, starting with setup or generate. * @param context Framework, backend URL, or selected project supplied by the host. * @param options Application directory, package manager, and cancellation from the host. * @returns The reviewed plan and completed file/installation operations. * @throws {Error} For invalid inputs, conflicting files, recovery problems, or installation failure. * Installation failure and cancellation after apply list the created files in the message. * @example * await runGenerationWorkflow(['generate', '--apply'], { * generation: { framework: 'react', backendURL: projectBackendURL }, * }, { cwd: projectDirectory, packageManager: 'bun' }); */ export declare const runGenerationWorkflow: (args: string[], context: FrontendCommandContext, options: GenerationRuntimeOptions) => Promise;