import type { MemFsEditorFile } from 'mem-fs-editor'; import type { InputOutputAdapter } from '@yeoman/types'; import type { Store } from 'mem-fs'; export type InstallTask = (nodePackageManager: string | undefined, defaultTask: () => Promise) => void | Promise; export type PackageManagerInstallTaskOptions = { memFs: Store; packageJsonLocation: string; adapter: InputOutputAdapter; nodePackageManager?: string; customInstallTask?: boolean | InstallTask | 'ask'; skipInstall?: boolean; }; /** * Executes package manager install. * - checks if package.json was committed. * - uses a preferred package manager or try to detect. * @return {Promise} Promise true if the install execution suceeded. */ export declare function packageManagerInstallTask({ memFs, packageJsonLocation, customInstallTask, adapter, nodePackageManager, skipInstall, }: PackageManagerInstallTaskOptions): Promise;