import { Stack } from './Stack'; import type { MarkdownItRules } from './tocommonmarkrules'; /** * Converts a markdown-it token stream to a CommonMark DOM */ export declare class FromMarkdownIt { rules: MarkdownItRules; /** * Construct the transformer */ constructor(rules?: { inlines?: any; blocks?: any; }); /** * Takes the stack of constructed inline nodes * properly closing them (if the close token is missing in the markdown) * returns the final root node for the inline */ static closeInlines(rules: MarkdownItRules, stack: Stack): any; /** * Create a callback for inlines */ static inlineCallback(rules: MarkdownItRules): (tokens: any[]) => any[]; /** * Process an inline node to CommonMark DOM */ static inlineToCommonMark(rules: MarkdownItRules, tokens: any[], stack: Stack): void; /** * Transform a block token stream to CommonMark DOM */ static blockToCommonMark(rules: MarkdownItRules, tokens: any[]): any; /** * Transform a token stream to CommonMark DOM */ toCommonMark(tokens: any[]): any; } export default FromMarkdownIt;