import * as unpackStream from 'unpack-stream';
import { Got } from './network/got';
import { Resolution } from './resolve';
export interface FetchOptions {
    pkgId: string;
    got: Got;
    storePath: string;
    offline: boolean;
    prefix: string;
}
export interface PackageDist {
    tarball: string;
    registry?: string;
    integrity?: string;
}
export default function fetchResolution(resolution: Resolution, target: string, opts: FetchOptions): Promise<unpackStream.Index>;
export declare function fetchFromTarball(dir: string, dist: PackageDist, opts: FetchOptions): Promise<{}>;
export declare function fetchFromRemoteTarball(dir: string, dist: PackageDist, opts: FetchOptions): Promise<{}>;
