import * as AD from "../../abstract-document/index.js"; export type AstChildElements = | AstHeading | AstText | AstParagraph | AstEmphasis | AstStrong | AstSubscript | AstSuperscript | AstList | AstListItem | AstBreak; export type AstElements = AstRoot | AstChildElements; export interface AstMetaLoc { readonly start: { readonly line: number; readonly column: number }; readonly end: { readonly line: number; readonly column: number }; } export interface AstParagraph { readonly type: "paragraph"; readonly children: Array; } export interface AstEmphasis { readonly type: "emphasis"; readonly children: Array; } export interface AstStrong { readonly type: "strong"; readonly children: Array; } export interface AstSubscript { readonly type: "sub"; readonly children: Array; } export interface AstSuperscript { readonly type: "sup"; readonly children: Array; } export interface AstText { readonly type: "text"; readonly value: string; } export interface AstHeading { readonly type: "heading"; readonly depth: number; readonly children: Array; } export interface AstRoot { readonly type: "root"; readonly children: Array; } export interface AstList { readonly type: "list"; readonly ordered?: boolean; readonly start?: number; readonly spread?: boolean; readonly children: Array; // technically only AstListItem appears hear } export interface AstListItem { readonly type: "listItem"; readonly spread?: boolean; readonly children: Array; } export interface AstBreak { readonly type: "break"; } export interface MarkDownProcessData { readonly atoms: Array; readonly paragraphs: Array; }