import { type Tree } from '@nx/devkit'; export declare function addTypescriptPlugin(tree: Tree, updatePackageScripts?: boolean): Promise; /** * Registers `@nx/js/typescript` in a workspace where no registration of it * infers `typecheck` yet, adding a typecheck-only entry next to an existing * unscoped one. Outside TS solution setups it only infers `typecheck`. Callers decide * whether inference plugins are in use. Pass `frameworkPlugin` when that * plugin still infers `typecheck` for some projects, so its target wins. */ export declare function ensureTypescriptPlugin(tree: Tree, updatePackageScripts?: boolean, frameworkPlugin?: string): Promise; /** * Registers `@nx/js/typescript`, with only its typecheck target, in a * workspace where `frameworkPlugin` no longer infers `typecheck`. Reuses the * framework plugin's `typecheckTargetName` and a `tsgo` compiler, and skips * workspaces where `@nx/js/typescript` already infers it or where * `typecheckTargetName` is `false`. With * `removeTypecheckTargetName`, the option is also dropped from the framework * plugin's registrations. Returns whether nx.json changed. */ export declare function registerTypescriptPluginForTypecheck(tree: Tree, frameworkPlugin: string, { removeTypecheckTargetName }?: { removeTypecheckTargetName?: boolean; }): boolean;