export interface MdastBaseNode { type: string; position?: unknown; } export interface MdastText extends MdastBaseNode { type: "text"; value: string; } export interface MdastStrong extends MdastBaseNode { type: "strong"; children: MdastInline[]; } export interface MdastEmphasis extends MdastBaseNode { type: "emphasis"; children: MdastInline[]; } export interface MdastInlineCode extends MdastBaseNode { type: "inlineCode"; value: string; } export interface MdastInlineMath extends MdastBaseNode { type: "inlineMath"; value: string; } export interface MdastLink extends MdastBaseNode { type: "link"; url: string; children: MdastInline[]; } export interface MdastTextDirective extends MdastBaseNode { type: "textDirective"; name: string; children: MdastInline[]; attributes?: Record; } export type MdastInline = MdastText | MdastStrong | MdastEmphasis | MdastInlineCode | MdastInlineMath | MdastLink | MdastTextDirective | MdastBaseNode; export interface MdastParagraph extends MdastBaseNode { type: "paragraph"; children: MdastInline[]; } export interface MdastHeading extends MdastBaseNode { type: "heading"; depth: number; children: MdastInline[]; } export interface MdastCode extends MdastBaseNode { type: "code"; lang?: string; value: string; } export interface MdastYaml extends MdastBaseNode { type: "yaml"; value: string; } export interface MdastThematicBreak extends MdastBaseNode { type: "thematicBreak"; } export interface MdastBlockquote extends MdastBaseNode { type: "blockquote"; children: MdastBlock[]; } export interface MdastList extends MdastBaseNode { type: "list"; ordered?: boolean; start?: number; children: MdastListItem[]; } export interface MdastListItem extends MdastBaseNode { type: "listItem"; children: MdastBlock[]; } export interface MdastMath extends MdastBaseNode { type: "math"; value: string; } export interface MdastImage extends MdastBaseNode { type: "image"; url: string; alt?: string; } export interface MdastTable extends MdastBaseNode { type: "table"; children: MdastTableRow[]; } export interface MdastTableRow extends MdastBaseNode { type: "tableRow"; children: MdastTableCell[]; } export interface MdastTableCell extends MdastBaseNode { type: "tableCell"; children: MdastInline[]; } export interface MdastContainerDirective extends MdastBaseNode { type: "containerDirective"; name: string; attributes?: Record; children: MdastBlock[]; data?: { directiveLabel?: boolean; }; } export interface MdastLeafDirective extends MdastBaseNode { type: "leafDirective"; name: string; attributes?: Record; children: MdastInline[]; } export interface MdastMystDirective extends MdastBaseNode { type: "mystDirective"; name: string; args?: string; options?: Record; value?: string; children: MdastBlock[]; } export interface MdastAdmonition extends MdastBaseNode { type: "admonition"; kind?: string; children: MdastBlock[]; } export interface MdastAdmonitionTitle extends MdastBaseNode { type: "admonitionTitle"; children: MdastInline[]; } export interface MdastContainer extends MdastBaseNode { type: "container"; kind?: string; label?: string; identifier?: string; children: MdastBlock[]; } export interface MdastCaption extends MdastBaseNode { type: "caption"; children: MdastInline[]; } export type MdastBlock = MdastParagraph | MdastHeading | MdastCode | MdastYaml | MdastThematicBreak | MdastBlockquote | MdastList | MdastMath | MdastImage | MdastTable | MdastContainerDirective | MdastLeafDirective | MdastMystDirective | MdastAdmonition | MdastContainer | MdastBaseNode; export interface MdastRoot { type: "root"; children: MdastBlock[]; } //# sourceMappingURL=mdast.d.ts.map