import { EngineServicesClient } from '../../core/client'; /** * Downloads a private plug-in package and hands back the folder it unpacked into. * * npm does the work on purpose. It resolves what "latest" means, it authenticates against the * restricted scope, and it verifies the tarball's integrity — three things this would otherwise * hand-roll over HTTP and get subtly wrong. The only thing we add is the platform token, which * `setupNpmrc` trades for registry credentials exactly as the `--beta` flows do. No npm account is * involved and no npm token is ever asked for. */ export declare function fetchPluginPackage(client: EngineServicesClient, pkg: string, version?: string): Promise<{ dir: string; cleanup: () => void; }>; /** * Refuses to install while the host application is running. * * This is not caution, it is the difference between a failed install and a broken one. Both Revit * and Rhino hold their plug-in assemblies open for the whole session, so a copy over a running host * fails on the first locked file — AFTER copying the ones it reached. The result is a folder holding * some new DLLs and some old, which loads, misbehaves, and looks like a bug in the product. */ export declare function assertHostClosed(processName: string, friendly: string): void;