import { Interfaces } from '@oclif/core'; import { LogLevel } from './log-level.js'; import { NPM } from './npm.js'; type Plugin = Interfaces.LinkedPlugin | Interfaces.UserPlugin; type NormalizedUserPJSON = { dependencies: Record; oclif: { plugins: Plugin[]; schema: number; }; private: boolean; }; export default class Plugins { config: Interfaces.Config; readonly npm: NPM; private readonly debug; private readonly logLevel; constructor(options: { config: Interfaces.Config; logLevel?: LogLevel; }); add(...plugins: Plugin[]): Promise; friendlyName(name: string): string; hasPlugin(name: string): Promise; install(name: string, { force, tag }?: { force?: boolean | undefined; tag?: string | undefined; }): Promise; link(p: string, { install }: { install: boolean; }): Promise; list(): Promise; maybeUnfriendlyName(name: string): Promise; pjson(): Promise; remove(name: string): Promise; unfriendlyName(name: string): string | undefined; uninstall(name: string): Promise; update(): Promise; private ensurePJSON; private isValidPlugin; private maybeCleanUp; private npmHasPackage; private get pjsonPath(); private readPJSON; private savePJSON; } export {};