import { PackageJson } from "type-fest";
import { Ora } from "ora";
/**
 * Retrieves the package.json of a freshly installed
 * template in a project folder by comparing the package.json
 * files before and after the template has been installed.
 *
 * If the template has already been installed before in the project,
 * it will be installed again in to a temporary project to be able
 * to correctly retrieve the template name and manifest information.
 *
 * @param cwd The directory of the newly created coat project
 * @param previousPackageJson The previous package.json content, to compare it
 *   with the updated version after npm install has been run
 * @param template The template string that was used in `coat create`.
 *   Will be used to install the template in a temporary directory if necessary
 * @param installSpinner The loading spinner that is displayed during
 *   `coat create`. It will be updated in case the template has to be
 *   installed in a temporary directory
 */
export declare function getTemplateInfo(cwd: string, previousPackageJson: PackageJson, template: string, installSpinner: Ora): Promise<PackageJson>;
