/**
 * Legacy magic block parser for RDMD compatibility.
 * Parses `[block:TYPE]JSON[/block]` syntax and returns MDAST nodes.
 * Taken from the v6 branch with some modifications to be more type safe
 * and adapted with the mdxish flow.
 */
import type { BlockHit } from '../../../lib/utils/extractMagicBlocks';
import type { Root as MdastRoot } from 'mdast';
import type { Plugin } from 'unified';
export interface ParseMagicBlockOptions {
    alwaysThrow?: boolean;
    compatibilityMode?: boolean;
    safeMode?: boolean;
}
/**
 * Unified plugin that restores magic blocks from placeholder tokens.
 *
 * During preprocessing, extractMagicBlocks replaces [block:TYPE]...[/block]
 * with inline code tokens like `__MAGIC_BLOCK_0__`. This plugin finds those
 * tokens in the parsed MDAST and replaces them with the parsed block content.
 */
declare const magicBlockRestorer: Plugin<[{
    blocks: BlockHit[];
}], MdastRoot>;
export default magicBlockRestorer;
