import { PnpmOptions, Dependencies } from '../types';
import { InstalledPackage } from '../install/installMultiple';
import { Shrinkwrap } from 'pnpm-lockfile';
import { MemoizedFunc } from '../memoize';
export declare type InstalledPackages = {
    [name: string]: InstalledPackage;
};
export declare type TreeNode = {
    nodeId: string;
    children: string[];
    pkg: InstalledPackage;
    depth: number;
    installable: boolean;
};
export declare type TreeNodeMap = {
    [nodeId: string]: TreeNode;
};
export declare type InstallContext = {
    installs: InstalledPackages;
    childrenIdsByParentId: {
        [parentId: string]: string[];
    };
    nodesToBuild: {
        nodeId: string;
        pkg: InstalledPackage;
        depth: number;
        installable: boolean;
    }[];
    shrinkwrap: Shrinkwrap;
    fetchingLocker: MemoizedFunc<Boolean>;
    skipped: Set<string>;
    tree: {
        [nodeId: string]: TreeNode;
    };
};
export declare function install(maybeOpts?: PnpmOptions): Promise<void>;
/**
 * Perform installation.
 *
 * @example
 *     install({'lodash': '1.0.0', 'foo': '^2.1.0' }, { silent: true })
 */
export declare function installPkgs(fuzzyDeps: string[] | Dependencies, maybeOpts?: PnpmOptions): Promise<void>;
