UNPKG

787 BTypeScriptView Raw
1/** @module pkg-install */
2import { InstallConfig } from './config';
3import { SupportedPackageManagers } from './types';
4/**
5 * Determine what package manager to use based on what preference is set,
6 * and whether it's currently running in a yarn/npm script
7 *
8 * @export
9 * @param {InstallConfig} config
10 * @returns {Promise<SupportedPackageManagers>}
11 */
12export declare function getPackageManager(config: InstallConfig): Promise<SupportedPackageManagers>;
13/**
14 * SYNC: Determine what package manager to use based on what preference is set,
15 * and whether it's currently running in a yarn/npm script
16 *
17 * @export
18 * @param {InstallConfig} config
19 * @returns {SupportedPackageManagers}
20 */
21export declare function getPackageManagerSync(config: InstallConfig): SupportedPackageManagers;