import type { Environment, EnvContext } from '@teambit/envs'; import type { ReactMain } from '@teambit/react'; import type { Compiler, CompilerMain } from '@teambit/compiler'; import type { BuildTask } from '@teambit/builder'; export declare const MdxEnvType = "mdx"; export declare class MdxEnv implements Environment { private react; private compiler; private envContext; constructor(react: ReactMain, compiler: CompilerMain, envContext: EnvContext); icon: string; private _mdxCompiler?; /** * lazily create the MDX compiler. instantiating it loads `@teambit/mdx.compilers.mdx-multi-compiler`, * which pulls in `@mdx-js/mdx` and its large transitive tree. creating it on-demand (only when a * compiler is actually needed) keeps these out of the bit bootstrap - see * e2e/performance/filesystem-read.e2e.ts. */ private getMdxCompiler; getCompiler(): Compiler; getBuildPipe(): BuildTask[]; getDependencies(): Promise<{ dependencies: { react: string; 'react-dom': string; 'core-js': string; }; devDependencies: { react: string; 'react-dom': string; '@types/mocha': string; '@types/node': string; '@types/react': string; '@types/react-dom': string; '@types/jest': string; '@babel/runtime': string; '@types/testing-library__jest-dom': string; }; peerDependencies: { react: string; 'react-dom': string; }; } & { dependencies: { '@teambit/mdx.ui.mdx-scope-context': string; '@mdx-js/react': string; }; }>; __getDescriptor(): Promise<{ type: string; }>; }