1 | /** @module pkg-install */
|
2 | import { InstallConfig } from './config';
|
3 | import { 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 | */
|
12 | export 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 | */
|
21 | export declare function getPackageManagerSync(config: InstallConfig): SupportedPackageManagers;
|