export type PackageDotJson = {
    version?: string;
    scripts?: Record<string, string | undefined>;
    dependencies?: Record<string, string>;
    devDependencies?: Record<string, string>;
    /** When present, counts as installed for framework detection (after deps/dev). */
    optionalDependencies?: Record<string, string>;
    resolutions?: Record<string, string>;
    overrides?: Record<string, string>;
    bin?: string | Record<string, string>;
    pnpm?: {
        overrides?: Record<string, string>;
    };
};
type NpmPackage = {
    name: string;
    version: string;
};
/**
 * Checks if @param packageJson has any of the @param packageNamesList package names
 * listed as a dependency, devDependency, or optionalDependency.
 * If so, it returns the first package name that is found, including the
 * version (range) specified in the package.json.
 */
export declare function findInstalledPackageFromList(packageNamesList: string[], packageJson: PackageDotJson): NpmPackage | undefined;
export declare function hasPackageInstalled(packageName: string, packageJson: PackageDotJson): boolean;
export declare function getPackageVersion(packageName: string, packageJson: PackageDotJson): string | undefined;
export {};
