UNPKG

next-mdx-remote-client

Version:

A wrapper of the `@mdx-js/mdx` for the `nextjs` applications in order to load MDX content. It is a fork of `next-mdx-remote`.

13 lines (12 loc) 394 B
/** * Copyright (c) @talatkuyuk AKA @ipikuka * SPDX-License-Identifier: MPL-2.0 */ import type { VFile } from "vfile"; import type { CompileOptions, CompileResult } from "./types.js"; /** * compiles the vfile source via the compile of the "@mdx-js/mdx". * * returns the compiled source. */ export declare function compile(vfile: VFile, options?: CompileOptions): Promise<CompileResult>;