export interface IInstallOptions { dependencies: string[]; } export interface IWorkspace { dependencies: string[]; location: string; name: string; } /** * Find currently used dependencies * @param rootPath * @param dependencies * @returns */ export declare const findCurrentVersions: (rootPath: string, dependencies: string[]) => Promise>; /** * Find latest dependencies from NPM (or return false if one of the dependency does not exists) * @param rootPath * @param params * @returns */ export declare const findLatestVersions: (rootPath: string, params: IInstallOptions) => false | Record; interface IAddDependenciesOptions { existingVersions: Record; latestVersions: Record; packages: string[]; target: string; } /** * Add dependencies in packages.json * @param rootPath * @param options * @param options.existingVersions * @param options.latestVersions * @param options.packages * @param options.target */ export declare const addDependencies: (rootPath: string, { existingVersions, latestVersions, packages, target }: IAddDependenciesOptions) => void; export {};