UNPKG

606 BTypeScriptView Raw
1import type {Root} from 'hast'
2import type {Plugin} from 'unified'
3import type {Options} from 'hast-util-to-html'
4
5export type {CharacterReferences, Options} from 'hast-util-to-html'
6
7/**
8 * Plugin to add support for serializing as HTML.
9 *
10 * @this
11 * Unified processor.
12 * @param
13 * Configuration (optional).
14 * @returns
15 * Nothing.
16 */
17declare const rehypeStringify: Plugin<
18 [(Options | null | undefined)?],
19 Root,
20 string
21>
22export default rehypeStringify
23
24// Add custom settings supported when `rehype-stringify` is added.
25declare module 'unified' {
26 interface Settings extends Options {}
27}