import { INodePackageManager, INodePackageManagerInstallOptions, INpmInstallResultInfo, INpmsResult, INpmPackageNameParts } from "./declarations"; import { IDictionary, IChildProcess, IFileSystem, IHostInfo } from "./common/declarations"; export declare abstract class BasePackageManager implements INodePackageManager { protected $childProcess: IChildProcess; protected $fs: IFileSystem; private $hostInfo; private $pacoteService; private packageManager; abstract install(packageName: string, pathToSave: string, config: INodePackageManagerInstallOptions): Promise; abstract uninstall(packageName: string, config?: IDictionary, path?: string): Promise; abstract view(packageName: string, config: Object): Promise; abstract search(filter: string[], config: IDictionary): Promise; abstract searchNpms(keyword: string): Promise; abstract getRegistryPackageData(packageName: string): Promise; abstract getCachePath(): Promise; constructor($childProcess: IChildProcess, $fs: IFileSystem, $hostInfo: IHostInfo, $pacoteService: IPacoteService, packageManager: string); isRegistered(packageName: string): Promise; getPackageNameParts(fullPackageName: string): Promise; getPackageFullName(packageNameParts: INpmPackageNameParts): Promise; protected getPackageManagerExecutableName(): string; protected processPackageManagerInstall(packageName: string, params: string[], opts: { cwd: string; isInstallingAllDependencies: boolean; }): Promise; protected getFlagsString(config: any, asArray: boolean): any; private isTgz; private isURL; }