/**
 * @file 块级语法：列表
 * @module transformer/gfm/block/list
 *
 * CommonMark / GFM 有序与无序列表及 list item。
 */
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";
/**
 * 列表块解析器。
 * * 采用游标遍历，去除任何对外部具体解析器的强依赖。
 * @extends {BaseBlockParser}
 */
declare class ListBlockParser 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;
    /**
     * 渲染单个 list item (解耦后，逻辑更清晰)
     */
    renderListItem(item: MarkdownNode, ctx: RenderContext, isLoose: boolean): string;
    /** @inheritdoc */
    render(node: MarkdownNode, ctx: RenderContext): string;
}
declare const _default: ListBlockParser;
export default _default;
//# sourceMappingURL=list.d.ts.map