/**
 * @file 块级语法：围栏代码块
 * @module transformer/gfm/block/code
 *
 * Fenced Code Block：以 ``` 或 ~~~ 包裹的代码块，可选 info string 指定语言。
 */
import { BaseBlockParser } from "../../../transformer/core/ParserBase.js";
import { MarkdownNode } from "../../../transformer/core/MarkdownNode.js";
import type { RenderContext } from "../../../transformer/core/context/RenderContext.js";
import { BlockParseContext } from "../../../transformer/core/context/BlockParseContext";
/**
 * 围栏代码块解析器。
 * * 采用逐字符分析，避免使用正则表达式以提升性能和严格遵守 CommonMark/GFM 规范。
 * @extends {BaseBlockParser}
 */
declare class CodeBlockParser extends BaseBlockParser {
    constructor();
    /** @inheritdoc */
    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 _default: CodeBlockParser;
export default _default;
//# sourceMappingURL=code.d.ts.map