Skip to content

Types

import type {
LfmComponentNode, // Normalized node from any trigger syntax
LfmCalloutNode, // Callout directive node
Citation, // Single citation: index, hex, title, url, source, dates, raw
CitationsData, // tree.data.citations shape: { map, ordered, warnings }
LfmHeading, // One entry in the tree.data.headings outline
LfmHeadingNode, // Nested form, from nestHeadings() — LfmHeading + children
HeadingBlockData, // data.headingBlock: { eyebrow?, subheadings[] }
CarouselData, // data.carousel: variant, sort, title, numbered, slides
CarouselSlide, // One slide, with capturedAt and preserved authoredIndex
FenceFormat, // A code-fence handler: name, match[], optional parse()
FenceData, // data.fence: { format, parsed?, error? }
RemarkLfmOptions, // Preset options
LinkPreviewData, // Annotated link metadata (canonical Sources-aligned)
LinkPreviewSpec, // What lfm-link-preview stamps on directive nodes
OGFetchOptions, // lfmOgFetcher options (backend, ttl, timeout, etc.)
OGFetchResult, // What an OG backend returns
OGBackendName, // 'direct' | 'opengraph-io' | …
} from '@lossless-group/lfm';