import { BitId } from '../../bit-id'; export declare type PackageJsonProps = { name?: string; version?: string; homepage?: string; main?: string; dependencies?: Record; devDependencies?: Record; peerDependencies?: Record; license?: string; scripts?: Record; workspaces?: string[]; private?: boolean; componentId?: BitId; }; export default class PackageJson { name?: string; version?: string; homepage?: string; main?: string; dependencies?: Record; devDependencies?: Record; peerDependencies?: Record; componentRootFolder?: string; license?: string; scripts?: Record; workspaces?: string[]; componentId?: BitId; constructor(componentRootFolder: string, { name, version, homepage, main, dependencies, devDependencies, peerDependencies, license, scripts, workspaces, componentId }: PackageJsonProps); static loadSync(componentRootFolder: string): PackageJson | null; static hasExisting(componentRootFolder: string): boolean; static findPath(dir: any): string | null; static findPackage(dir: any, addPaths?: any): any; static getPackageJson(pathStr: string): Promise; static saveRawObject(pathStr: string, obj: Record): Promise; static addWorkspacesToPackageJson(rootDir: string, componentsDefaultDirectory: string, dependenciesDirectory: string, customImportPath: string | null | undefined): Promise; static removeComponentsFromWorkspaces(rootDir: string, pathsTOoRemove: string[]): Promise; static removeComponentsFromDependencies(rootDir: string, registryPrefix: any, componentIds: string[]): Promise; static extractWorkspacesPackages(packageJson: { [k: string]: any; }): string[] | null; static updateWorkspacesPackages(packageJson: any, workspacesPackages: any): void; static throwForInvalidWorkspacesConfig(packageJson: any): void; }