import * as ast from "../ast/node.js"; /** * TagMapper maps MarkdownIt node types to HTML tags and vice versa. * * MarkdownIt node types: bold_open, bold_close, image, explicitly * Tag types: "b", "/b", "img", etc */ export declare class TagMapper { /** tags that have opening and closing versions */ private static readonly OPEN_CLOSE_MAPPINGS; /** tags that stand alone, i.e. have no opening and closing versions */ private static readonly STANDALONE_MAPPINGS; /** maps HTML tag names to their corresponding MarkdownIt types */ private readonly tagTypeMappings; /** maps MarkdownIt types to their corresponding HTML tags */ private readonly typeTagMappings; constructor(); isOpenCloseTag(tagName: ast.NodeTag): boolean; isStandaloneTag(tagName: string): boolean; /** Returns the opening MarkdownIt type for the given HTML tag. */ openingTypeForTag(tagName: ast.NodeTag, attributes: ast.NodeAttributes): ast.NodeType; /** Returns the HTML tag for the given MarkdownIt type. */ tagForType(type: ast.NodeType): ast.NodeTag; /** Returns the Markdown node type for the given HTML tag. */ typeForTag(tag: ast.NodeTag, attributes: ast.NodeAttributes): ast.NodeType; /** Calculates the mappings from HTML tags to MarkdownIt types */ private createTagTypeMappings; /** Calculates the mappings from MarkdownIt types to HTML tags */ private createTypeTagMappings; } //# sourceMappingURL=tag-mapper.d.ts.map