import { Tree } from '@nrwl/devkit'; import { CollectionModifyOpts } from '../remove'; export interface ReplaceInsideFunctionBlockOptions { functionId: string; code: string; replace?: CollectionModifyOpts; indexAdj?: number; } export interface ApiReplaceInsideFunctionBlockOptions { functionId?: string; replace?: CollectionModifyOpts; indexAdj?: number; code: string; } export interface ReplaceInsideFunctionBlockTreeOptions extends ReplaceInsideFunctionBlockOptions { projectRoot: string; relTargetFilePath: string; } export declare function replaceInsideFunctionBlockInSource(source: string, opts: ReplaceInsideFunctionBlockOptions): string | undefined; export declare function replaceInsideFunctionBlockInFile(filePath: string, opts: ReplaceInsideFunctionBlockOptions): string | undefined; export declare function replaceInsideFunctionBlockInTree(tree: Tree, opts: ReplaceInsideFunctionBlockTreeOptions): Promise;