import { Tree } from '@nrwl/devkit'; import { CollectionModifyOpts } from '../remove'; import { IndexAdj } from '../types'; export interface ReplaceArrayOptions { varId: string; code: string; replace?: CollectionModifyOpts; indexAdj?: IndexAdj; } export interface ApiReplaceArrayOptions { varId?: string; indexAdj?: IndexAdj; replace?: CollectionModifyOpts; code: string; } export interface ReplaceArrayTreeOptions extends ReplaceArrayOptions { projectRoot: string; relTargetFilePath: string; } export declare function replaceInNamedArrayInSource(sourceCode: string, opts: ReplaceArrayOptions): string | undefined; export declare function replaceInNamedArrayInFile(targetFilePath: string, opts: ReplaceArrayOptions): string | undefined; export declare function replaceInNamedArrayInTree(tree: Tree, opts: ReplaceArrayTreeOptions): Promise;