export interface OxaExtensible { extensions_json?: string; } export interface OxaText extends OxaExtensible { type: "Text"; value: string; } export interface OxaStrong extends OxaExtensible { type: "Strong"; children: OxaInline[]; } export interface OxaEmphasis extends OxaExtensible { type: "Emphasis"; children: OxaInline[]; } export interface OxaInlineCode extends OxaExtensible { type: "InlineCode"; value: string; language?: string; } export interface OxaInlineMath extends OxaExtensible { type: "InlineMath"; value: string; } export interface OxaLink extends OxaExtensible { type: "Link"; target: string; children?: OxaInline[]; } export interface OxaSuperscript extends OxaExtensible { type: "Superscript"; children: OxaInline[]; } export interface OxaSubscript extends OxaExtensible { type: "Subscript"; children: OxaInline[]; } export interface OxaFootnoteReference extends OxaExtensible { type: "FootnoteReference"; label: string; } export type OxaInline = OxaText | OxaStrong | OxaEmphasis | OxaInlineCode | OxaInlineMath | OxaLink | OxaSuperscript | OxaSubscript | OxaFootnoteReference | OxaOpaque; export interface OxaHeading extends OxaExtensible { type: "Heading"; level: number; children: OxaInline[]; } export interface OxaParagraph extends OxaExtensible { type: "Paragraph"; children: OxaInline[]; } export interface OxaCode extends OxaExtensible { type: "Code"; value: string; language?: string; } export interface OxaThematicBreak extends OxaExtensible { type: "ThematicBreak"; } export interface OxaBlockquote extends OxaExtensible { type: "Blockquote"; children: OxaBlock[]; } export interface OxaImage extends OxaExtensible { type: "Image"; src: string; alt?: string; } export interface OxaMath extends OxaExtensible { type: "Math"; value: string; } export interface OxaList extends OxaExtensible { type: "List"; ordered: boolean; children: OxaBlock[]; startIndex?: number; } export interface OxaAdmonition extends OxaExtensible { type: "Admonition"; kind: string; title?: string; children: OxaBlock[]; } export interface OxaDirective extends OxaExtensible { type: "Directive"; name: string; argument?: string; options_json: string; body_json?: string; children_json?: string; } export interface OxaOpaque extends OxaExtensible { type: "Opaque"; source_type: string; payload_json: string; } export interface OxaTable extends OxaExtensible { type: "Table"; headerRows?: number; rows: OxaTableRow[]; } export interface OxaTableRow extends OxaExtensible { type: "TableRow"; cells: OxaTableCell[]; } export interface OxaTableCell extends OxaExtensible { type: "TableCell"; children: OxaInline[]; } export type OxaBlock = OxaHeading | OxaParagraph | OxaCode | OxaThematicBreak | OxaBlockquote | OxaImage | OxaMath | OxaList | OxaAdmonition | OxaDirective | OxaOpaque | OxaTable; export interface OxaDocument extends OxaExtensible { type: "Document"; tree_json: string; metadata: Record; data: Record; } //# sourceMappingURL=oxa-document.d.ts.map