import { type OutputStyle } from '@williamthorsen/nmr-core'; /** * Removes a package's build output and the build-cache entry that describes it, so no state survives to * make the next build skip. Removal is idempotent: an already-clean package is a silent no-op. */ export declare function cleanPackage(packageDir: string, style: OutputStyle): Promise; /** * Cleans the package containing `cwd`, or every workspace package when run from the monorepo root. * * From within a package this is the built-in clean itself: `nmr` has already resolved `clean` to this bin * before invoking it, so resolving again would apply the package's own override twice. * * This is the default `clean` script, shipped as a bin rather than delegating to `rimraf`. Under pnpm's * isolated layout, `pnpm exec` resolves only bins of the consuming project's own direct dependencies, so * a `rimraf` in nmr's dependency tree would be unreachable — while nmr's own bins are linked into the * consumer's `node_modules/.bin`, nmr being a direct dependency. */ export declare function runClean(cwd: string, style: OutputStyle): Promise;