/**
 * @file 行内 HTML 属性片段语法
 * @module transformer/extends/inline/html_attrs
 *
 * 语法：`{class="x"}` 等 HTML 属性片段。
 *
 * 语义：
 * - `{class="x"}` 解析为 `html_attrs` 节点
 * - 渲染时将属性注入到前一个兄弟节点的开标签
 *
 * 例如：`**bold**{class="x"}` -> `<strong class="x">bold</strong>`
 */
import { BaseInlineParser } from "../../../transformer/core/ParserBase.js";
import { MarkdownNode } from "../../../transformer/core/MarkdownNode.js";
import type { RenderContext } from "../../../transformer/core/context/RenderContext";
import type { InlineParseContext } from "../../../transformer/core/context/InlineParseContext";
export declare function findAttr(src: string, _index: number): {
    next: number;
    attr: string | null;
};
/**
 * HTML 属性片段行内解析器。
 *
 * @extends {BaseInlineParser}
 */
declare class HtmlAttrsInlineParser extends BaseInlineParser {
    constructor();
    canOpenAt(src: string, index: number, ctx: InlineParseContext): boolean;
    /** @inheritdoc */
    parse(src: string, index: number, ctx: InlineParseContext): {
        node: MarkdownNode;
        nextIndex: number;
    } | null;
    /** @inheritdoc */
    render(node: MarkdownNode, ctx: RenderContext, prev?: {
        html: string;
    }): string;
    transformPrev(prevHtml: string, node: MarkdownNode, _ctx: RenderContext): string;
}
declare const _default: HtmlAttrsInlineParser;
export default _default;
//# sourceMappingURL=html_attrs.d.ts.map