blob: a946e0af1973620d99bc016f643da52470bf18e4 [file] [log] [blame]
/**
* @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 { Rule } from '@angular-devkit/schematics';
import { Constructor } from '../../update-tool';
import { MigrationRule } from '../../update-tool/migration-rule';
import { TargetVersion } from '../../update-tool/target-version';
import { RuleUpgradeData } from '../upgrade-data';
/** List of migration rules which run for the CDK update. */
export declare const cdkMigrationRules: Constructor<MigrationRule<RuleUpgradeData>>[];
declare type NullableMigrationRule = Constructor<MigrationRule<RuleUpgradeData | null>>;
/**
* Creates a Angular schematic rule that runs the upgrade for the
* specified target version.
*/
export declare function createUpgradeRule(targetVersion: TargetVersion, extraRules: NullableMigrationRule[], upgradeData: RuleUpgradeData, onMigrationCompleteFn?: (targetVersion: TargetVersion, hasFailures: boolean) => void): Rule;
export {};