import { Tree } from '@nrwl/devkit'; import { CollectionModifyOpts } from '../remove'; import { IndexAdj } from '../types'; export interface ReplaceObjectOptions { varId: string; replace?: CollectionModifyOpts; indexAdj?: IndexAdj; code: string; } export interface ApiReplaceObjectOptions { varId?: string; replace?: CollectionModifyOpts; indexAdj?: IndexAdj; code: string; } export interface ReplaceObjectTreeOptions extends ReplaceObjectOptions { projectRoot: string; relTargetFilePath: string; } export declare function replaceInNamedObjectInSource(sourceCode: string, opts: ReplaceObjectOptions): string | undefined; export declare function replaceInNamedObjectInFile(targetFilePath: string, opts: ReplaceObjectOptions): string | undefined; export declare function replaceInNamedObjectInTree(tree: Tree, opts: ReplaceObjectTreeOptions): Promise;