import type { MarkdownProcessor } from './MarkdownProcessor.js'; import { MbNode } from '../utils/node.js'; /** * Class that is responsible for rendering markdown-in-attributes */ export declare class MdAttributeRenderer { markdownProcessor: MarkdownProcessor; constructor(mdp: MarkdownProcessor); /** * Processes the markdown attribute of the provided element, inserting the corresponding child * if there is no pre-existing slot child with the name of the attribute present. * @param node Element to process * @param attribute Attribute name to process * @param isInline Whether to process the attribute with only inline markdown-it rules * @param slotName Name attribute of the element to insert, which defaults to the attribute name */ processAttributeWithoutOverride(node: MbNode, attribute: string, isInline: boolean, slotName?: string): void; /** * Checks if the node has both the given slot and the given attribute, * deleting the attribute and logging a warning if both the slot and attribute exist. * @param node Element to process * @param attribute Attribute name to process * @param slotName Name attribute of the element to insert, which defaults to the attribute name * @returns {boolean} whether the node has both the slot and attribute */ hasSlotOverridingAttribute(node: MbNode, attribute: string, slotName?: string): boolean; /** * Checks if there is a pre-existing slot for the attribute. * If there is a slot, it deletes the attribute and logs a warning. * If there is no slot, it processes the markdown attribute. * @param node Element to process * @param attribute Attribute name to process * @param isInline Whether to process the attribute with only inline markdown-it rules * @param slotName Name attribute of the element to insert, which defaults to the attribute name */ processSlotAttribute(node: MbNode, attribute: string, isInline: boolean, slotName?: string): void; processPopoverAttributes(node: MbNode): void; processTooltip(node: MbNode): void; processModalAttributes(node: MbNode): void; processPanelAttributes(node: MbNode): void; processQuestion(node: MbNode): void; processQOption(node: MbNode): void; processQuiz(node: MbNode): void; processTabAttributes(node: MbNode): void; processBoxAttributes(node: MbNode): void; processCardAttributes(node: MbNode): void; processDropdownAttributes(node: MbNode): void; /** * Thumbnails */ processThumbnailAttributes(node: MbNode): void; processScrollTopButtonAttributes(node: MbNode): void; processAnnotationPointAttributes(node: MbNode): void; } //# sourceMappingURL=MdAttributeRenderer.d.ts.map