import { logging } from '@angular-devkit/core';
import type { Tree } from '@angular-devkit/schematics';
import * as ts from 'typescript';
/** Map containing all import changes in otter packages */
export interface ImportsMapping {
    [packageName: string]: {
        [importName: string]: {
            newPackage: string;
            newValue?: string;
        };
    };
}
/**
 * Update the imports of a given file according to replace mapping
 * @param logger Logger to report messages
 * @param tree File System tree
 * @param sourceFile Source file to analyze
 * @param importsRegexp Regexp of the imports to replace
 * @param renamePackagesRegexp Regexp of the packages to replace
 * @param mapImports Map of the import to replace
 * @param renamedPackages Map of the import package to replace
 */
export declare function updateImportsInFile(logger: logging.LoggerApi, tree: Tree, sourceFile: ts.SourceFile, importsRegexp: RegExp, renamePackagesRegexp: RegExp, mapImports?: ImportsMapping, renamedPackages?: Record<string, string>): number;
//# sourceMappingURL=update-imports.d.ts.map