import { CollectionInsert } from './positional'; import { TSQueryStringTransformer } from '@phenomnomnominal/tsquery/dist/src/tsquery-types'; import { AnyOpts } from '../modify'; import { Tree } from '@nrwl/devkit'; export interface InsertArrayOptions { varId: string; insert?: CollectionInsert; indexAdj?: number; code: string; } export interface ApiInsertArrayOptions { varId?: string; insert?: CollectionInsert; indexAdj?: number; code: string; } export interface InsertArrayTreeOptions extends InsertArrayOptions { projectRoot: string; relTargetFilePath: string; } export declare const insertInArray: (opts: AnyOpts) => TSQueryStringTransformer; export declare function insertIntoNamedArrayInSource(source: string, opts: InsertArrayOptions): string | undefined; export declare function insertIntoNamedArrayInFile(filePath: string, opts: InsertArrayOptions): string | undefined; export declare function insertIntoNamedArrayInTree(tree: Tree, opts: InsertArrayTreeOptions): Promise;