import { type TreeNode } from '../utils/terminal/layout'; import type { Spinner } from '../utils/terminal/spinner-service'; /** Create action script */ export declare function generateWidget(options: { /** Has the name of the action. Can also be a path with the name (e.g actions/hello) */ name: string; /** Specifies in which folder the action widget should be generated in */ actionsDir: string; /** Has the current working directory */ cwd: string; /** Whether to write to the filesystem or not */ dryRun?: boolean; /** * The spinner owned by the calling command. When provided, its text is temporarily switched * to reflect the dependency install and restored afterwards (success or failure), instead of * creating a second, separate install spinner. */ spinner?: Spinner; }): Promise;