import { Node } from 'typescript'; import { Tree } from '@nrwl/devkit'; import { AnyOpts } from '../modify'; export interface ClassMethodDecoratorInsertOptions { classId: string; methodId: string; decoratorId: string; code: string; indexAdj?: number; } export interface ApiClassMethodDecoratorInsertOptions { classId?: string; methodId?: string; decoratorId?: string; indexAdj?: number; code: string; } export interface ClassMethodDecoratorInsertTreeOptions extends ClassMethodDecoratorInsertOptions { projectRoot: string; relTargetFilePath: string; } export declare const insertClassMethodDecorator: (opts: AnyOpts) => (node: Node) => string | undefined; export declare function insertClassMethodDecoratorInSource(source: string, opts: ClassMethodDecoratorInsertOptions): string | undefined; export declare function insertClassMethodDecoratorInFile(filePath: string, opts: ClassMethodDecoratorInsertOptions): string | undefined; export declare function insertClassMethodDecoratorInTree(tree: Tree, opts: ClassMethodDecoratorInsertTreeOptions): Promise;