import type { Output } from '../output.js'; import { type PackageManager } from '../project/package-manager.js'; /** Throws a CliError naming the directory if it exists, is non-empty, and `force` was not given. */ export declare function assertScaffoldable(dir: string, force: boolean): void; /** * Installing dependencies is the least reliable step: network flakiness or a broken local * package-manager config are common and have nothing to do with whether the scaffold itself is * correct. Its failure must not be reported as a scaffold failure — the project on disk is * already complete and valid, only its dependencies are missing. Returns whether it succeeded so * callers can adjust what they tell the creator to do next — `bitmagic check` cannot run without * node_modules. * * The manager is chosen per machine rather than fixed (`preferredInstallManager`), and named out * loud on the way past: which one ran decides the lockfile, and the lockfile decides what every * later command tells this creator to type. */ export declare function installDependencies(output: Output, dir: string, manager: PackageManager): boolean;