/**
 * @file 块级语法拓展：块级数学公式
 * @module transformer/extends/block/mathBlock
 *
 * 语法：`$$ ... $$`
 * 远程渲染：https://math-api-delta.vercel.app
 * 配置：`syntaxOptions.math_block`
 */
import { BaseBlockParser } from "../../../transformer/core/ParserBase.js";
import { MarkdownNode } from "../../../transformer/core/MarkdownNode.js";
import { BlockParseContext } from "../../../transformer/core/context/BlockParseContext";
import { RenderContext } from "../../../transformer/core/context/RenderContext";
/** 数学公式渲染 API 基址。 */
export declare const MATH_API_HOST = "https://math-api-delta.vercel.app";
/** `syntaxOptions.math_block` */
export interface MathBlockOptions extends Record<string, unknown> {
    apiHost?: string;
}
export interface MathImageOptions {
    apiHost?: string;
    inline?: boolean;
    color?: string;
}
declare class MathBlockParser extends BaseBlockParser {
    constructor();
    buildMathImageSrc(content: string, { apiHost, inline, color }?: MathImageOptions): string;
    canOpenAt(lines: string[], index: number, _ctx: BlockParseContext): boolean;
    /** @inheritdoc */
    parse(lines: string[], index: number, _ctx: BlockParseContext): {
        node: MarkdownNode;
        nextIndex: number;
    } | null;
    /** @inheritdoc */
    render(node: MarkdownNode, ctx: RenderContext): string;
}
declare const mathBlockParser: MathBlockParser;
export default mathBlockParser;
//# sourceMappingURL=mathBlock.d.ts.map