import { ProcessorOptions } from '@mdx-js/mdx'; import { LoaderOptions } from '../types.js'; import { NextraConfig } from '../types.generated.js'; import 'mdast'; import 'next'; import 'react'; import 'zod'; import './schemas.js'; import './lib/index.js'; import 'rehype-katex/lib/index.js'; import 'better-react-mathjax'; import 'rehype-pretty-code'; import 'rehype-katex'; type MdxOptions = NextraConfig['mdxOptions'] & Pick; type CompileMdxOptions = Pick & { /** @default {} */ mdxOptions: MdxOptions; /** @default '' */ filePath: string; useCachedCompiler: boolean; /** @default false */ isPageImport: boolean; lastCommitTime: number; }; /** * @example * ```ts * // Usage with MDXRemote * import { compileMdx } from 'nextra/compile' * import { MDXRemote } from 'nextra/mdx-remote' * * const rawJs = await compileMdx(rawMdx) * const content = * ``` */ declare function compileMdx(rawMdx: string, { staticImage, search, readingTime, latex, codeHighlight, defaultShowCopyCode, mdxOptions, filePath, useCachedCompiler, isPageImport, whiteListTagsStyling, lastCommitTime }?: Partial): Promise; export { compileMdx };