import { TreeNode } from '../api/install';
import { PackageJson } from '@pnpm/types';
import { Store } from 'package-store';
import { DependencyTreeNodeMap } from './resolvePeers';
import { Shrinkwrap } from 'pnpm-shrinkwrap';
export default function (rootNodeIdsByAlias: {
    [alias: string]: string;
}, tree: {
    [nodeId: string]: TreeNode;
}, opts: {
    force: boolean;
    global: boolean;
    baseNodeModules: string;
    bin: string;
    topParents: {
        name: string;
        version: string;
    }[];
    wantedShrinkwrap: Shrinkwrap;
    currentShrinkwrap: Shrinkwrap;
    makePartialCurrentShrinkwrap: boolean;
    production: boolean;
    development: boolean;
    optional: boolean;
    root: string;
    storePath: string;
    storeIndex: Store;
    skipped: Set<string>;
    pkg: PackageJson;
    independentLeaves: boolean;
    updateShrinkwrapMinorVersion: boolean;
    outdatedPkgs: {
        [pkgId: string]: string;
    };
}): Promise<{
    linkedPkgsMap: DependencyTreeNodeMap;
    wantedShrinkwrap: Shrinkwrap;
    currentShrinkwrap: Shrinkwrap;
    newPkgResolvedIds: string[];
}>;
