type Params = { /** * Takes precedence over the env var and the config (`--dist-dir`) */ dist_dir?: string; }; /** * # Set the dist directory for this process and its children * Precedence: `params.dist_dir` (the CLI's `--dist-dir`), then an existing * `BUNEXT_DIST_DIR` env var, then `dist_dir` from bunext.config.ts. Stores * the absolute path in `BUNEXT_DIST_DIR`, which `grabDirNames()` reads and * child processes inherit. Runs at the start of every CLI command and of * `bunextInit()`, before anything reads the artifact paths. Throws on an * invalid directory. */ export default function setupDistDir(params?: Params): Promise; export {};