import { Resolution } from '../resolve';
export declare type Shrinkwrap = {
    version: number;
    dependencies: ResolvedDependencies;
    packages: ResolvedPackages;
};
export declare type ResolvedPackages = {
    [pkgId: string]: DependencyShrinkwrap;
};
export declare type DependencyShrinkwrap = {
    resolution: Resolution;
    dependencies?: ResolvedDependencies;
};
/*** @example
 * {
 *   "foo": "registry.npmjs.org/foo/1.0.1"
 * }
 */
export declare type ResolvedDependencies = {
    [pkgName: string]: string;
};
export declare function read(pkgPath: string, opts: {
    force: boolean;
}): Promise<Shrinkwrap>;
export declare function save(pkgPath: string, shrinkwrap: Shrinkwrap): any;
