site/node_modules/rehype-parse/index.d.ts

25 lines
623 B
TypeScript
Raw Normal View History

2024-10-14 06:09:33 +00:00
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 {}
}