import type { Environment } from './types.js';
export declare const SUPPORTED_PACKAGE_MANAGERS: readonly ["npm", "yarn", "pnpm", "bun", "deno"];
export type PackageManager = (typeof SUPPORTED_PACKAGE_MANAGERS)[number];
export declare const DEFAULT_PACKAGE_MANAGER: PackageManager;
export declare function getPackageManager(): PackageManager | undefined;
export declare function getPackageManagerScriptCommand(packagerManager: PackageManager, args?: Array<string>): {
    command: string;
    args: string[];
};
export declare function getPackageManagerExecuteCommand(packagerManager: PackageManager, pkg: string, args?: Array<string>): {
    command: string;
    args: string[];
};
export declare function getPackageManagerInstallCommand(packagerManager: PackageManager, pkg?: string, isDev?: boolean): {
    command: "npm" | "yarn" | "pnpm" | "bun" | "deno";
    args: string[];
};
export declare function packageManagerInstall(environment: Environment, cwd: string, packagerManager: PackageManager, pkg?: string): Promise<{
    stdout: string;
}>;
export declare function translateExecuteCommand(packageManager: PackageManager, command: {
    command: string;
    args?: Array<string>;
}): {
    command: string;
    args: Array<string>;
};
export declare function packageManagerExecute(environment: Environment, cwd: string, packagerManager: PackageManager, pkg: string, args: Array<string>): Promise<{
    stdout: string;
}>;
