/// /** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { AbsoluteFsPath } from '../../../src/ngtsc/file_system'; import { PackageJsonUpdater } from '../writing/package_json_updater'; import { EntryPointPackageJson, PackageJsonFormatProperties } from './entry_point'; export declare const NGCC_VERSION = "12.2.9"; /** * Returns true if there is a format in this entry-point that was compiled with an outdated version * of ngcc. * * @param packageJson The parsed contents of the package.json for the entry-point */ export declare function needsCleaning(packageJson: EntryPointPackageJson): boolean; /** * Clean any build marker artifacts from the given `packageJson` object. * @param packageJson The parsed contents of the package.json to modify * @returns true if the package was modified during cleaning */ export declare function cleanPackageJson(packageJson: EntryPointPackageJson): boolean; /** * Check whether ngcc has already processed a given entry-point format. * * @param packageJson The parsed contents of the package.json file for the entry-point. * @param format The entry-point format property in the package.json to check. * @returns true if the `format` in the entry-point has already been processed by this ngcc version, * false otherwise. */ export declare function hasBeenProcessed(packageJson: EntryPointPackageJson, format: PackageJsonFormatProperties): boolean; /** * Write a build marker for the given entry-point and format properties, to indicate that they have * been compiled by this version of ngcc. * * @param pkgJsonUpdater The writer to use for updating `package.json`. * @param packageJson The parsed contents of the `package.json` file for the entry-point. * @param packageJsonPath The absolute path to the `package.json` file. * @param properties The properties in the `package.json` of the formats for which we are writing * the marker. */ export declare function markAsProcessed(pkgJsonUpdater: PackageJsonUpdater, packageJson: EntryPointPackageJson, packageJsonPath: AbsoluteFsPath, formatProperties: PackageJsonFormatProperties[]): void;