import { CollectionModifyOpts } from './positional'; import { AnyOpts } from '../modify'; import { Tree } from '@nrwl/devkit'; import { IndexAdj } from '../types'; export interface RemoveArrayOptions { varId: string; remove?: CollectionModifyOpts; indexAdj?: IndexAdj; } export interface ApiRemoveArrayOptions { varId?: string; remove?: CollectionModifyOpts; indexAdj?: IndexAdj; } export interface RemoveArrayTreeOptions extends RemoveArrayOptions { projectRoot: string; relTargetFilePath: string; } export declare const removeFromArray: (opts: AnyOpts) => (srcNode: any) => string | null | undefined; export declare function removeFromNamedArrayInSource(source: string, opts: RemoveArrayOptions): string | undefined; export declare function removeFromNamedArrayInFile(filePath: string, opts: RemoveArrayOptions): string | undefined; export declare function removeFromNamedArrayInTree(tree: Tree, opts: RemoveArrayTreeOptions): Promise;