UNPKG

822 BTypeScriptView Raw
1/**
2 * Plugin to add support for serializing as HTML.
3 *
4 * @param {Options | null | undefined} [options]
5 * Configuration (optional).
6 * @returns {undefined}
7 * Nothing.
8 */
9export default function rehypeStringify(options?: Options | null | undefined): undefined;
10export default class rehypeStringify {
11 /**
12 * Plugin to add support for serializing as HTML.
13 *
14 * @param {Options | null | undefined} [options]
15 * Configuration (optional).
16 * @returns {undefined}
17 * Nothing.
18 */
19 constructor(options?: Options | null | undefined);
20 compiler: (tree: import("hast").Root, file: import("vfile").VFile) => string;
21}
22export type Root = import('hast').Root;
23export type Options = import('hast-util-to-html').Options;
24export type Compiler = import('unified').Compiler<Root, string>;