import type { InstalledSourceScope, NpmSource, PackageManagerContext, SourceScope } from "./package-manager-types.ts";
export declare function getNpmCommand(context: PackageManagerContext): {
    command: string;
    args: string[];
};
export declare function getPackageManagerName(context: PackageManagerContext): string;
export declare function runNpmCommand(context: PackageManagerContext, args: string[], options?: {
    cwd?: string;
}): Promise<void>;
export declare function runNpmCommandSync(context: PackageManagerContext, args: string[]): string;
export declare function getGitDependencyInstallArgs(context: PackageManagerContext): string[];
export declare function getNpmInstallArgs(context: PackageManagerContext, specs: string[], installRoot: string): string[];
export declare function installNpm(context: PackageManagerContext, source: NpmSource, scope: SourceScope, temporary: boolean): Promise<void>;
export declare function uninstallNpm(context: PackageManagerContext, source: NpmSource, scope: SourceScope): Promise<void>;
export declare function installNpmBatch(context: PackageManagerContext, specs: string[], scope: InstalledSourceScope): Promise<void>;
export declare function ensureGitIgnore(dir: string): void;
export declare function getManagedNpmInstallPath(context: PackageManagerContext, source: NpmSource, scope: SourceScope): string;
export declare function getGlobalNpmRoot(context: PackageManagerContext): string;
export declare function getNpmInstallPath(context: PackageManagerContext, source: NpmSource, scope: SourceScope): string;
export declare function getExistingNpmInstallPath(context: PackageManagerContext, source: NpmSource, scope: SourceScope): string | undefined;
export declare function installedNpmMatchesConfiguredVersion(context: PackageManagerContext, source: NpmSource, installedPath: string): Promise<boolean>;
export declare function npmHasAvailableUpdate(context: PackageManagerContext, source: NpmSource, installedPath: string): Promise<boolean>;
export declare function getInstalledNpmVersion(installedPath: string): string | undefined;
export declare function getLatestNpmVersion(context: PackageManagerContext, packageSpec: string, range?: string): Promise<string>;
//# sourceMappingURL=package-manager-npm.d.ts.map