import { Tree } from '@nrwl/devkit'; import { AnyOpts } from '../modify'; import { CollectionInsert } from './positional'; export interface InsertFunctionOptions { functionId: string; insert?: CollectionInsert; indexAdj?: number; code: string; } export interface ApiInsertFunctionOptions { functionId?: string; insert?: CollectionInsert; indexAdj?: number; code: string; } export interface InsertFunctionTreeOptions extends InsertFunctionOptions { projectRoot: string; relTargetFilePath: string; } export declare const insertInFunctionBlock: (opts: AnyOpts) => (srcNode: any) => string | undefined; export declare function insertInsideFunctionBlockInSource(source: string, opts: InsertFunctionOptions): string | undefined; export declare function insertInsideFunctionBlockInFile(filePath: string, opts: InsertFunctionOptions): string | undefined; export declare function insertInsideFunctionBlockInTree(tree: Tree, opts: InsertFunctionTreeOptions): Promise;