import { InstalledPackage } from '../install/installMultiple';
import { TreeNode } from '../api/install';
import { Package } from '../types';
import { DependencyTreeNodeMap } from './resolvePeers';
import { Shrinkwrap } from 'pnpm-lockfile';
export default function (topPkgs: InstalledPackage[], rootNodeIds: string[], tree: {
    [nodeId: string]: TreeNode;
}, opts: {
    force: boolean;
    global: boolean;
    baseNodeModules: string;
    bin: string;
    topParents: {
        name: string;
        version: string;
    }[];
    shrinkwrap: Shrinkwrap;
    privateShrinkwrap: Shrinkwrap;
    production: boolean;
    optional: boolean;
    root: string;
    storePath: string;
    skipped: Set<string>;
    pkg: Package;
}): Promise<{
    linkedPkgsMap: DependencyTreeNodeMap;
    shrinkwrap: Shrinkwrap;
    newPkgResolvedIds: string[];
}>;
