1 | import type {Root} from 'hast'
|
2 | import type {Plugin} from 'unified'
|
3 | import type {Options} from 'hast-util-to-html'
|
4 |
|
5 | export 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 | */
|
17 | declare const rehypeStringify: Plugin<
|
18 | [(Options | null | undefined)?],
|
19 | Root,
|
20 | string
|
21 | >
|
22 | export default rehypeStringify
|
23 |
|
24 | // Add custom settings supported when `rehype-stringify` is added.
|
25 | declare module 'unified' {
|
26 | interface Settings extends Options {}
|
27 | }
|