import type { Parent } from 'unist'; import type * as HAST from 'hast-format'; import { H } from './Handler'; export { all, allText } from './all'; export { one } from './one'; export { revert } from './revert'; export { wrap } from './wrap'; export { H, Handler } from './Handler'; export interface ToHastProps { allowDangerousHTML?: boolean; handlers?: object; footer?: (h: H) => HAST.Element | null; } /** Transform `tree`, which is an mdast node, to a hast node. */ export default function toHAST(tree: Parent, options: ToHastProps): Parent; export declare const rdhastRaw: () => (ast: any) => void;