type JSON = string | number | boolean | null | JSON[] | {
    [key: string]: JSON;
};
export type PackageJson = {
    name: string;
    version?: string;
    description?: string;
    scripts?: Record<string, string>;
    dependencies?: Record<string, string>;
    devDependencies?: Record<string, string>;
    peerDependencies?: Record<string, string>;
} & {
    [key: string]: JSON;
};
export declare const readPackageJson: (path: string) => Promise<PackageJson | undefined>;
export declare const findDependency: (pkgJson: PackageJson, name: string) => string | undefined;
export declare const writePackageJson: (path: string, pkgJson: PackageJson) => Promise<void>;
export {};
