export declare const getNearestPackageFile: (cwd?: string) => string; export type DepRecord = Record<'dependencies' | 'devDependencies', Record>; export type ScriptRecord = Record; export type NPMScriptMap = { script: string; content: string; }; export declare const addNPMScripts: (pkgPath: string, scriptMap: NPMScriptMap[]) => void; export declare const checkDepExist: (dep: string, cwd?: string) => boolean; export declare const ensureDepsInstalled: (depOrDeps: string | string[], cwd?: string) => Promise; export declare const ensureDevDepsInstalled: (depOrDeps: string | string[], cwd?: string) => Promise; export declare const installDep: (dep: string | string[], asDevDeps?: boolean, cwd?: string) => Promise; export type PkgManager = 'npm' | 'yarn' | 'pnpm'; export declare const getManager: (projectDir: string) => PkgManager; //# sourceMappingURL=index.d.ts.map