/** * Discard the fresh install directory after a step that runs before * activation failed, then rethrow that failure. Nothing outside the * directory has been touched yet, so removing it leaves the global * installation exactly as the command found it. * * A removal that fails is reported alongside the original failure, which * stays the aggregate's `cause` and lends it its `code`: the directory it * left behind is the only trace of the aborted install, so the user has to * hear about it, but the install still failed for the reason it reports. */ export declare function cleanupFailedGlobalInstall(installDir: string, originalError: unknown): Promise;