import { UpdateJsonFileOptions } from './json-file'; import { NxJson } from './nx-json'; import { TreeLike } from './tree'; /** * Retrieves the `nx.json` configuration file from a given project tree. * * This function specifically fetches the `nx.json` file, which is a configuration file used in Nx workspaces. * It utilizes a generic helper function `GetJsonFile` to read the JSON file from the provided tree structure. * * @param tree - The project tree structure from which to retrieve the `nx.json` file. This tree must conform to the `TreeLike` interface. * @returns An instance of `NxJson` containing the parsed contents of the `nx.json` file. * @template Tree - A generic type that extends `TreeLike`, representing the structure of the project tree. */ export declare function GetNxJson(tree: Tree): NxJson; export type UpdateNxJsonOptions = UpdateJsonFileOptions; export declare function UpdateNxJson(tree: Tree, updaterOrJsonFile: NxJson | ((nxJson: NxJson) => void), options?: UpdateNxJsonOptions): void; export declare function UpdateNxJson(tree: Tree, updaterOrJsonFile: NxJson | ((nxJson: NxJson) => Promise), options?: UpdateNxJsonOptions): Promise;