import type { PackageJson } from 'type-fest'; /** Rewrites `./dist/` and `./src/` paths in an object to `./` paths @param json An object or JSON string @returns An object with the dist paths */ export declare function rewritePackageJsonPaths(pkg: PackageJson): PackageJson; export declare function removePreinstallScript(pkg: PackageJson): PackageJson; interface TransformPackageJsonArgs { package: PackageJson; } /** Transforms a `package.json` file from a source package.json to a distribution package.json to be published onto `npm` */ export declare function transformPackageJson({ package: originalPackage, }: TransformPackageJsonArgs): Promise; export {};