/** * ext-content-mdx: ContentProcessor implementation backed by MDX + remark/rehype. * * Provides the `ContentProcessor` contract: * - `compileMdx(options)` runs @mdx-js/mdx through Veryfront's remark + * rehype plugin stack and returns compiled ESM plus extracted headings * and frontmatter. * - `compileMarkdown(options)` runs a unified markdown pipeline * (remark-parse to remark-rehype to rehype-sanitize to rehype-stringify) * producing sanitized HTML wrapped in a React component. * * Core's `src/transforms/md/compiler` and `src/transforms/mdx/compiler` * resolve this contract at call time. When the extension is not installed, * core throws an actionable install message (see * `src/extensions/recommendations.ts`). * * @module extensions/ext-content-mdx */ import "../../../_dnt.polyfills.js"; import type { ExtensionFactory } from "veryfront/extensions"; import type { ContentCompileOptions, ContentPlugin, ContentProcessingResult, ContentProcessor } from "veryfront/extensions/content"; declare class MdxContentProcessor implements ContentProcessor { compileMdx(options: ContentCompileOptions): Promise; compileMarkdown(options: ContentCompileOptions): Promise; getRemarkPlugins(): ContentPlugin[]; getRehypePlugins(): ContentPlugin[]; } declare const extMdx: ExtensionFactory; export default extMdx; export { MdxContentProcessor }; //# sourceMappingURL=index.d.ts.map