export declare type Dict = { [key: string]: T; }; export interface PkgJson { name: string; dependencies?: Dict; devDependencies?: Dict; scripts?: { [name: string]: string; }; } export declare type Packages = Dict<{ path: string; json: PkgJson; }>; /** * Given a path, it returns paths to package.json files of all packages, * and the package JSONs themselves. */ export declare function listPkgs(wsRoot: string, globs: string[]): Dict<{ path: string; json: PkgJson; }>;