import { Tree } from '@nrwl/devkit'; import { AnyOpts } from '../modify'; import { CollectionModifyOpts } from './positional'; export interface RemoveFunctionOptions { functionId: string; remove?: CollectionModifyOpts; indexAdj?: number; } export interface ApiRemoveFunctionOptions { functionId?: string; remove?: CollectionModifyOpts; indexAdj?: number; } export interface RemoveFunctionTreeOptions extends RemoveFunctionOptions { projectRoot: string; relTargetFilePath: string; } export declare const removeInFunctionBlock: (opts: AnyOpts) => (srcNode: any) => string | undefined; export declare function removeInsideFunctionBlockInSource(source: string, opts: RemoveFunctionOptions): string | undefined; export declare function removeInsideFunctionBlockInFile(filePath: string, opts: RemoveFunctionOptions): string | undefined; export declare function removeInsideFunctionBlockInTree(tree: Tree, opts: RemoveFunctionTreeOptions): Promise;