import { PackageJson } from 'type-fest'; import { Obj } from './type'; export declare const PKG_JSON_FILE_NAME = "package.json"; export declare function pkgJsonExists(dir: string): Promise; export declare function pkgJsonExistsSync(dir: string): boolean; export declare function loadPkgJson(dir: string): Promise; export declare function loadPkgJsonSync(dir: string): PackageJson; export declare function outputPkgJson(dir: string, json: Obj): Promise; export declare function getNodeModulesPkgFilepath(cwd: string, pkg: string, filepath: string): string; export declare function getNodeModulesPkgJsonFilepath(cwd: string, pkg: string): string; export declare function nodeModulesPkgJsonExists(cwd: string, pkg: string): Promise; export declare function loadNodeModulesPkgJson(cwd: string, pkg: string): Promise; export declare function loadNodeModulesPkgJsonSync(cwd: string, pkg: string): PackageJson; export declare function updatePkgs({ cwd, pkgs, dev, save, exitWhenErr, }: { cwd: string; pkgs: string[] | Record; dev?: boolean; save?: boolean; exitWhenErr?: boolean; }): Promise; export declare function updateGlobalPkg({ pkg, force, cmd, }: { pkg: string; force?: boolean; cmd?: string; }): Promise; //# sourceMappingURL=package-json.d.ts.map