type PackageManager = "yarn" | "pnpm" | "npm";
/**
 * Finds the directory the package manager install has to be executed in.
 *
 * For a workspace monorepo (the Medusa app sits in for example "apps/backend")
 * this is the workspace root, since that is the only place where an install
 * resolves the whole workspace and hoists the plugin's dependencies. For a
 * standalone project it is the Medusa application itself.
 */
export declare function findInstallRoot(directory: string): string;
/**
 * Detects the package manager used by the project. A lockfile anywhere between
 * the install root and the application directory wins over a "packageManager"
 * field, so the field is only remembered as a fallback while walking.
 */
export declare function detectPackageManager(directory: string, installRoot: string): PackageManager;
/**
 * Add the specified plugins to the project from the local packages registry
 */
export default function localAddPlugin({ directory, plugin_names, }: {
    directory: string;
    plugin_names: string[];
}): Promise<void>;
export {};
//# sourceMappingURL=add.d.ts.map