import type { PackageJson } from 'type-fest'; import type { CommonjsBundleOptions } from '../types.js'; /** 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; declare type TransformPackageJsonProps = { commonjs?: boolean | CommonjsBundleOptions; } | { pkg: PackageJson; pkgPath: string; commonjs?: boolean | CommonjsBundleOptions; }; /** Transforms a `package.json` file from a source package.json to a distribution package.json to be published onto `npm` */ export declare function transformPackageJson(props?: TransformPackageJsonProps): Promise; export {};