/// <reference types="node" />
import { IncomingMessage } from 'http';
export declare type UnpackProgress = (downloaded: number, totalSize: number) => void;
export declare type UnpackRemoteStreamOptions = {
    onStart?: () => void;
    onProgress?: UnpackProgress;
    shasum?: string;
};
export declare function remote(stream: IncomingMessage, dest: string, opts: UnpackRemoteStreamOptions): Promise<{}>;
export declare function local(stream: NodeJS.ReadableStream, dest: string): Promise<{}>;
