import { Tree } from '@nrwl/devkit'; import { AnyOpts } from '../modify'; import { Node } from 'typescript'; export interface ClassDecoratorInsertOptions { classId: string; indexAdj?: number; code: string; } export interface ApiClassDecoratorInsertOptions { classId?: string; indexAdj?: number; code: string; } export interface ClassDecoratorInsertTreeOptions extends ClassDecoratorInsertOptions { projectRoot: string; relTargetFilePath: string; } export declare const insertBeforeClassDecl: (opts: AnyOpts) => (node: Node) => string | undefined; export declare function insertClassDecoratorInSource(source: string, opts: ClassDecoratorInsertOptions): string | undefined; export declare function insertClassDecoratorInFile(filePath: string, opts: ClassDecoratorInsertOptions): string | undefined; export declare function insertClassDecoratorInTree(tree: Tree, opts: ClassDecoratorInsertTreeOptions): Promise;