import { Tree } from '@nx/devkit'; /** * Adapts the global tsconfig file for use with Polaris. * * Specifically, this enables the `experimentalDecorators` compiler option. */ export declare function adaptTsConfigForPolaris(host: Tree): void; /** * Changes the module code generation type for the specified library project to 'commonjs'. * * @note We use the CommonJS module format, because TypeScript does not modify the import statements * when generating ES2015/ES2020 modules. This results in invalid import paths, because * ECMAScript module path imports always need to include the file extension. For now, * the easiest way around this, is to use CommonJS. * See: * - https://nodejs.org/api/esm.html#import-specifiers * - https://github.com/microsoft/TypeScript/issues/40878 * - https://github.com/microsoft/TypeScript/issues/42151 */ export declare function adaptLibModuleTypeForPolaris(host: Tree, projectName: string): void; /** * Configures `tsconfig.lib.json` to embed the TS source code into the source maps by setting * `"inlineSources": true`. * * Otherwise the source maps would point to .ts files, which are not bundled in the npm packages. * This is a solution found here: https://github.com/nrwl/nx/issues/11179#issuecomment-1263474100 */ export declare function enableEmbeddingSourcesInSourceMaps(host: Tree, projectName: string): void; /** * Checks if he specified `npmPackage` is remapped in the tsconfig `paths`. * * If it is remapped, the package's source is likely contained in the local monorepo and * thus, the package must not be installed through the package manager. * * @returns `true` if the specified `npmPackage` is remapped in the tsconfig `paths`, otherwise `false. */ export declare function checkIfPackageIsInPaths(host: Tree, npmPackage: string): boolean; /** * @returns The path of the workspace's global tsconfig file or `undefined` if it cannot be found. */ export declare function getWorkspaceTsConfigPath(host: Tree): string;