import type { PackageInfo } from "./types/PackageInfo"; /** * Read package.json from the given path if it exists. * * @returns The package info, or undefined if it doesn't exist or can't be read. * (Logs verbose warnings instead of throwing on error.) */ export declare function getPackageInfo(cwd: string): PackageInfo | undefined; /** * Read package.json from the given path if it exists. * * @returns The package info, or undefined if it doesn't exist or can't be read. * (Logs verbose warnings instead of throwing on error.) */ export declare function getPackageInfoAsync(cwd: string): Promise;