import { ImportDeclaration } from 'typescript'; import { Tree } from '@nrwl/devkit'; import { AnyOpts } from '../modify'; export interface RemoveImportOptions { importId: string; importFileRef: string; multiple?: boolean; } export interface ApiRemoveImportOptions { importId?: string; importFileRef?: string; } export interface RemoveImportTreeOptions extends RemoveImportOptions { projectRoot: string; relTargetFilePath: string; } export declare const removeImportDeclCode: (node: any, importDecl: ImportDeclaration) => string; export declare const removeImport: (opts: AnyOpts) => (node: any) => string | undefined; export declare const removeImports: (opts: AnyOpts) => (node: any) => undefined; export declare function removeImportsInSource(sourceCode: string, opts: RemoveImportOptions): string | undefined; export declare function removeImportsInFile(filePath: string, opts: RemoveImportOptions): string | undefined; export declare function removeImportInSource(sourceCode: string, opts: RemoveImportOptions): string | undefined; export declare function removeImportInFile(filePath: string, opts: RemoveImportOptions): string | undefined; export declare function removeImportInTree(tree: Tree, opts: RemoveImportTreeOptions): Promise;