site/node_modules/rehype-parse/index.d.ts
2024-10-14 08:09:33 +02:00

25 lines
623 B
TypeScript

import type {Root} from 'hast'
import type {Plugin} from 'unified'
import type {Options} from './lib/index.js'
export type {ErrorCode, ErrorSeverity} from 'hast-util-from-html'
export type {Options} from './lib/index.js'
/**
* Plugin to add support for parsing from HTML.
*
* @this
* Unified processor.
* @param
* Configuration (optional).
* @returns
* Nothing.
*/
declare const rehypeParse: Plugin<[(Options | null | undefined)?], string, Root>
export default rehypeParse
// Add custom settings supported when `rehype-parse` is added.
declare module 'unified' {
interface Settings extends Options {}
}