import { Migration, ResolvedResource } from '@angular/cdk/schematics'; import { Node } from 'typescript'; export declare class DateRangeValidationMigration extends Migration { enabled: boolean; visitNode(node: Node): void; visitTemplate(template: ResolvedResource): void; /** Rewrites `NxDateRangeValidators.min(...)` / `.max(...)` to the new names. */ private _visitValidatorCall; /** Warns when an old error key appears as a TypeScript identifier. */ private _warnOnErrorKeyIdentifier; /** * Auto-rewrites old error keys inside an `nx-formfield` containing an * ``, stays silent for keys inside a formfield that * unambiguously holds a single-field date control, and warns about the rest. */ private _migrateErrorKeysInTemplate; /** * Classifies each `nx-formfield` by the date control in its subtree, returning * the spans of range formfields and of unambiguously single-field ones. A * formfield containing both is treated as a range. */ private _findDateFormfieldSpans; private _errorKeyMessage; private _logResourceWarning; }