import { AnyOpts, InsertPosition } from '../modify'; import { Tree } from '@nrwl/devkit'; export interface ClassMethodInsertOptions { classId: string; methodId: string; insertPos?: InsertPosition; indexAdj?: number; code: string; } export interface ApiClassMethodInsertOptions { classId?: string; methodId?: string; insertPos?: InsertPosition; indexAdj?: number; code: string; } export interface ClassMethodInsertTreeOptions extends ClassMethodInsertOptions { projectRoot: string; relTargetFilePath: string; } export declare const insertClassMethod: (opts: AnyOpts) => (srcNode: any) => string | undefined; export declare function insertClassMethodInSource(source: string, opts: ClassMethodInsertOptions): string | undefined; export declare function insertClassMethodInFile(filePath: string, opts: ClassMethodInsertOptions): string | undefined; export declare function insertClassMethodInTree(tree: Tree, opts: ClassMethodInsertTreeOptions): Promise;