/** * `tools uninstall` — scope-aware, identity-resolving removal (ADR-0041). * * Accepts a tool id OR a package name; resolves it against manifest scans of * the two install hosts (file reads only — no runtime import), displays the * resolved identity, and removes the package install state. Rules (spec): * one uninstallable scope → plain uninstall works; both scopes → require * `--global`/`--project`; bundled ids are rejected; SQLite data is never * touched here (`tools data purge` owns that). */ import { type ToolProvenance } from '@opensip-cli/core'; import type { ToolsUninstallResult } from '@opensip-cli/contracts'; /** Options for {@link toolsUninstall}. */ export interface ToolsUninstallOptions { /** Tool id or npm package name. */ readonly target: string; readonly cwd: string; readonly global?: boolean; readonly project?: boolean; /** * The admitted-tool provenance for this run, read by the command handler from * the entered RunScope and passed in (keeps this function pure). Used only to * reject uninstalling a bundled tool. Default `[]`. */ readonly provenance?: readonly ToolProvenance[]; } /** Resolve + remove one installed tool. Never touches the datastore. */ export declare function toolsUninstall(opts: ToolsUninstallOptions): ToolsUninstallResult; //# sourceMappingURL=uninstall.d.ts.map