import * as React from 'react'; import React__default, { HTMLAttributes, ReactNode, ComponentProps, ReactElement } from 'react'; import { S as SlotComponent, p as MdxFrameItemTone } from './framed-block-CjD-cilm.js'; import { Accordion as Accordion$1, AccordionItem, AccordionTrigger, AccordionContent, Tabs as Tabs$1, TabsList, TabsTab, TabsPanel } from '@atom63/ui-react'; type ImageCompareImage = { alt: string; label?: string; src: string; }; type ImageCompareProps = Omit, 'children' | 'onPositionChange' | 'title'> & { after: ImageCompareImage; aspectRatio?: string; before: ImageCompareImage; bordered?: boolean; caption?: string; changePositionOnHover?: boolean; description?: string; handle?: ReactNode; /** Idle ms before restoring to center when `resetAfterIdle` is on. @default 2500 */ idleResetMs?: number; objectFit?: 'contain' | 'cover' | 'fill' | 'none' | 'scale-down'; onPositionChange?: (position: number) => void; /** Initial slider position (0-100). @default 50 */ position?: number; /** Restore to center after the user stops interacting. @default false */ resetAfterIdle?: boolean; resetDelay?: number; resetOnLeave?: boolean; title?: ReactNode; transition?: string; vertical?: boolean; }; declare const ImageCompare: React.ForwardRefExoticComponent, "children" | "onPositionChange" | "title"> & { after: ImageCompareImage; aspectRatio?: string; before: ImageCompareImage; bordered?: boolean; caption?: string; changePositionOnHover?: boolean; description?: string; handle?: ReactNode; /** Idle ms before restoring to center when `resetAfterIdle` is on. @default 2500 */ idleResetMs?: number; objectFit?: "contain" | "cover" | "fill" | "none" | "scale-down"; onPositionChange?: (position: number) => void; /** Initial slider position (0-100). @default 50 */ position?: number; /** Restore to center after the user stops interacting. @default false */ resetAfterIdle?: boolean; resetDelay?: number; resetOnLeave?: boolean; title?: ReactNode; transition?: string; vertical?: boolean; } & React.RefAttributes>; type DemoStageProps = { children: ReactNode; className?: string; headerEnd?: ReactNode; headerStart?: ReactNode; panelClassName?: string; }; declare const DemoStage: React.ForwardRefExoticComponent>; declare const mdxStyles: { readonly root: string; readonly spacing: { readonly block: "my-6 first:mt-0 last:mb-0 sm:my-8"; readonly component: "my-5 first:mt-0 last:mb-0"; readonly media: "my-8 first:mt-0 last:mb-0 sm:my-10"; readonly mediaLg: "my-12 first:mt-0 last:mb-0 sm:my-16"; readonly mediaSm: "my-6 first:mt-0 last:mb-0"; }; readonly headings: { readonly h1: "text-4xl font-semibold tracking-tight scroll-mt-24 mt-10 first:mt-0 sm:text-5xl"; readonly h2: "text-2xl font-semibold tracking-tight scroll-mt-24 mt-10 first:mt-0 sm:text-3xl"; readonly h3: "text-xl font-semibold tracking-tight scroll-mt-24 mt-8 first:mt-0 sm:text-2xl"; readonly h4: "text-lg font-semibold tracking-tight scroll-mt-24 mt-6 first:mt-0"; readonly h5: "text-base font-semibold scroll-mt-24 mt-6 first:mt-0"; readonly h6: "mdx-h6 text-sm font-semibold scroll-mt-24 mt-6 first:mt-0"; }; readonly text: { readonly paragraph: "text-base leading-relaxed text-secondary-foreground mt-4 first:mt-0 last:mb-0 [&_a]:underline [&_a]:underline-offset-4"; readonly lead: "mdx-text-secondary text-lg leading-relaxed mt-4 first:mt-0"; readonly small: "mdx-text-secondary text-sm leading-relaxed"; }; readonly content: { readonly link: "font-normal underline underline-offset-4 decoration-2 decoration-foreground/30 hover:decoration-foreground/70 transition-colors"; readonly strong: "font-semibold"; readonly em: "italic"; readonly del: "line-through"; readonly ins: "mdx-ins underline"; readonly inlineCode: "mdx-inline-code px-1 py-0.5 font-mono text-xs leading-snug font-medium"; readonly pre: "mdx-pre overflow-x-auto p-4 text-sm leading-relaxed [&_code]:bg-transparent [&_code]:border-0 [&_code]:p-0 [&_code]:font-normal [&_code]:leading-relaxed [&_code]:ring-0 [&_code]:text-sm"; readonly code: "font-mono text-sm leading-relaxed font-normal"; readonly blockquote: "mdx-blockquote mt-6 px-4 py-3 text-base italic rounded-e [&_p]:mt-2 [&_p:first-child]:mt-0"; readonly ul: "mt-4 list-disc space-y-2 ps-4 [&_ul]:mt-2 [&_ul]:space-y-2 [&_ul]:ps-4 [&_a]:underline [&_a]:underline-offset-4"; readonly ol: "mt-4 list-decimal space-y-2 ps-4 [&_ol]:mt-2 [&_ol]:space-y-2 [&_ol]:ps-4 [&_a]:underline [&_a]:underline-offset-4"; readonly li: "text-base leading-relaxed text-secondary-foreground"; readonly hr: "mdx-hr my-8 sm:my-10"; readonly kbd: "mdx-kbd inline-flex h-6 select-none items-center gap-1 px-2 font-mono text-xs font-medium"; readonly tableWrapper: "mdx-table-wrapper mt-6 w-full overflow-hidden sm:mt-8"; readonly table: "w-full border-collapse text-sm [&_code]:text-xs"; readonly thead: "mdx-thead"; readonly tbody: "[&_tr:last-child]:border-0"; readonly tr: "mdx-tr transition-colors"; readonly th: "mdx-th h-9 px-3 text-start align-middle font-semibold"; readonly td: "mdx-td px-3 py-2 align-middle"; readonly caption: "mdx-caption mt-3 text-balance text-xs"; readonly img: "my-8 rounded-xl first:mt-0 last:mb-0 sm:my-10"; readonly figure: "my-8 first:mt-0 last:mb-0 sm:my-10"; readonly figcaption: "mdx-figcaption mx-auto mt-2 max-w-[var(--mdx-measure,42rem)] text-center text-xs leading-snug text-balance"; readonly iframe: "mdx-media-framed my-8 first:mt-0 last:mb-0 w-full rounded-xl sm:my-10"; readonly video: "mdx-media-framed my-8 first:mt-0 last:mb-0 w-full rounded-xl sm:my-10"; readonly audio: "my-8 first:mt-0 last:mb-0 w-full sm:my-10"; readonly details: "mdx-details mt-6 p-4 [&>*:first-child:not(summary)]:mt-0 [&>summary+*]:mt-3"; readonly summary: "mdx-summary cursor-pointer select-none font-semibold [&::-webkit-details-marker]:hidden"; readonly mark: "mdx-mark rounded-sm px-1"; readonly sub: "text-xs align-sub"; readonly sup: "text-xs align-super"; readonly abbr: "mdx-abbr cursor-help"; readonly cite: "mdx-cite italic"; readonly dfn: "font-semibold"; readonly time: "mdx-time"; readonly var: "font-mono italic"; readonly samp: "mdx-samp px-1 font-mono text-xs"; readonly output: "mdx-output px-2 py-1 font-mono text-xs"; }; readonly layout: { readonly callout: { readonly base: "my-4 rounded-lg border p-4 text-base leading-relaxed first:mt-0 last:mb-0 sm:my-5 [&_p]:mt-1.5 [&_p]:text-base [&_p]:leading-relaxed [&_p:first-child]:mt-0 [&_ul]:mt-1.5 [&_ul]:space-y-1 [&_ol]:mt-1.5 [&_ol]:space-y-1 [&_li]:text-base [&_li]:leading-relaxed [&_li]:text-inherit"; }; }; }; type CalloutType = 'info' | 'warning' | 'error' | 'success'; type CalloutProps = { children: ReactNode; className?: string; type?: CalloutType; }; declare function Callout({ children, type, className }: CalloutProps): React.JSX.Element; declare namespace Callout { var Icon: SlotComponent; var Title: SlotComponent; var Body: SlotComponent; var Actions: SlotComponent; } declare const mediaSpacingClasses: { readonly none: ""; readonly sm: "my-6 first:mt-0 last:mb-0"; readonly default: "my-8 first:mt-0 last:mb-0 sm:my-10"; readonly lg: "my-12 first:mt-0 last:mb-0 sm:my-16"; }; type MediaSpacing = keyof typeof mediaSpacingClasses; declare const aspectRatioClasses: { readonly '1/1': "aspect-square object-cover"; readonly '4/3': "aspect-[4/3] object-cover"; readonly '3/4': "aspect-[3/4] object-cover"; readonly '16/9': "aspect-video object-cover"; readonly '9/16': "aspect-[9/16] object-cover"; }; type FigureBlockProps = { alt: string; aspectRatio?: keyof typeof aspectRatioClasses; bordered?: boolean; caption?: string; className?: string; /** Click-to-zoom; multiple figures on a page share one connected gallery. */ enableLightbox?: boolean; /** Gallery id for connected lightbox (default: all FigureBlocks on the page). */ lightboxGalleryId?: string; loading?: 'eager' | 'lazy'; spacing?: MediaSpacing; src: string; children?: ReactNode; }; /** * Portable figure + image for MDX content. * Requires FigureLightboxHost on the MDX provider (included in MDXContentProvider). */ declare function FigureBlock({ src, alt, caption, aspectRatio, bordered, spacing, loading, enableLightbox, lightboxGalleryId, className, children, }: FigureBlockProps): React.JSX.Element; declare namespace FigureBlock { var Caption: SlotComponent; var Aside: SlotComponent; } type AccordionProps = ComponentProps; /** * MDX `Accordion` block — a thin wrapper around the `@atom63/ui-react` `Accordion` * that adds prose-context block spacing. Accessibility, keyboard navigation and * single/multiple modes are inherited from `@atom63/ui-react`. Authors compose it as * `` + `` / `` / ``. */ declare function Accordion({ className, ...props }: AccordionProps): React.JSX.Element; declare namespace Accordion { var Item: typeof AccordionItem; var Trigger: typeof AccordionTrigger; var Content: typeof AccordionContent; } /** * Internal-only styling channel for embedded code blocks. Not part of the * public `@atom63/mdx/blocks` API — only `CodeBlock` (reader) and `Compare` * (writer) consume it in-package. See P2 Batch A: the provider was retired from the * public exports because no app consumed it. */ type CodeBlockVariant = 'article' | 'embedded'; type CodeBlockProps = { children?: ReactNode; className?: string; code: string; copyLabel?: string; /** Label shown in place of an unknown language in the article header. */ fallbackLangLabel?: string; lang?: string; /** Visually-hidden status text announced while syntax highlighting runs. */ loadingLabel?: string; maxHeight?: string; /** * Show a numbered gutter. Defaults to a smart heuristic: on for `article` * blocks longer than 6 lines, off for short snippets and embedded blocks. */ showLineNumbers?: boolean; showCopyButton?: boolean; spacing?: 'component' | 'none'; variant?: CodeBlockVariant; }; declare function CodeBlock({ children, code, lang, loadingLabel, showLineNumbers, variant, ...props }: CodeBlockProps): React.JSX.Element; type ColorSwatchItemProps = { name: string; variable: string; }; /** Single semantic color swatch for token documentation in MDX. */ declare function ColorSwatchItem({ name, variable }: ColorSwatchItemProps): React.JSX.Element; type CompareProps = { children: ReactNode; className?: string; description?: ReactNode; title?: ReactNode; }; type CompareItemProps = { children: ReactNode; className?: string; eyebrow?: ReactNode; title: ReactNode; tone?: MdxFrameItemTone; }; declare function CompareItem({ children, className, eyebrow, title, tone }: CompareItemProps): React.JSX.Element; declare function Compare({ children, className, description, title }: CompareProps): React.JSX.Element; declare namespace Compare { var Item: typeof CompareItem; var Title: SlotComponent; var Description: SlotComponent; } type ComparisonPairProps = { children: ReactNode; className?: string; label?: string; slowMotionLabel?: string; speedControl?: boolean; }; type ComparisonSlotProps = { children: ReactNode; className?: string; label?: string; }; declare function ComparisonPair({ children, className, label, slowMotionLabel, speedControl, }: ComparisonPairProps): React__default.JSX.Element; declare namespace ComparisonPair { var Before: ({ children, className, label }: ComparisonSlotProps) => React__default.JSX.Element; var After: ({ children, className, label }: ComparisonSlotProps) => React__default.JSX.Element; } interface ExampleContainerProps { align?: 'left' | 'center'; children: React__default.ReactNode; className?: string; description?: string; /** Nested inside DocExample — drops outer margin and border (parent supplies chrome). */ embedded?: boolean; spec?: React__default.ReactNode; title?: string; /** Use wide layout to break out of narrow prose constraints */ wide?: boolean; } declare function ExampleContainer({ children, align, description, spec, title, className, embedded, wide, }: ExampleContainerProps): React__default.JSX.Element; type KeyIdeaProps = { children: ReactNode; className?: string; label?: ReactNode; title?: ReactNode; }; declare function KeyIdea({ children, className, label, title }: KeyIdeaProps): React.JSX.Element; type LayerStackItem = { constraint?: ReactNode; description?: ReactNode; label: ReactNode; metaphor?: ReactNode; title: ReactNode; }; type LayerStackLabels = { metaphor: ReactNode; description: ReactNode; constraint: ReactNode; }; type LayerStackProps = { className?: string; description?: ReactNode; labels?: Partial; layers: LayerStackItem[]; title?: ReactNode; }; declare function LayerStack({ className, description, labels, layers, title }: LayerStackProps): React.JSX.Element; type MdxPageSkeletonVariant = 'docs' | 'lesson'; interface MdxPageSkeletonProps { className?: string; showInlineToc?: boolean; showRail?: boolean; variant?: MdxPageSkeletonVariant; } declare function MdxPageSkeleton({ className, showInlineToc, showRail, variant, }: MdxPageSkeletonProps): React.JSX.Element; type MediaPlaceholderKind = 'image' | 'video' | 'diagram'; type MediaPlaceholderProps = { /** What the real asset should show — surfaced as the frame's caption. */ label?: string; /** Picks the icon + kind tag. Defaults to `image`. */ kind?: MediaPlaceholderKind; /** CSS aspect-ratio for the frame (e.g. `16 / 9`, `4 / 3`, `1 / 1`). */ aspectRatio?: string; className?: string; }; /** * A labeled dashed frame that marks where a real image, video, or diagram will * go. Sits in the reading column with media spacing, so it previews the content * rhythm before assets exist — swap it for an ImageBlock / AutoplayVideoBlock later. */ declare function MediaPlaceholder({ label, kind, aspectRatio, className, }: MediaPlaceholderProps): ReactElement; type MermaidDiagramLabels = { diagram: string; zoomOut: string; zoomOutTitle: string; resetZoom: string; resetZoomTitle: string; zoomIn: string; zoomInTitle: string; rendering: string; errorMessage: string; }; declare const defaultMermaidDiagramLabels: MermaidDiagramLabels; interface MermaidDiagramProps { /** When true, animate the diagram's paths with a stroke draw-on-reveal. Off by default. */ animated?: boolean; chart: string; labels?: Partial; title?: string; } declare function MermaidDiagram({ animated, chart, labels, title }: MermaidDiagramProps): React.JSX.Element; type PageMetaProps = { children?: ReactNode; className?: string; description?: ReactNode; eyebrow?: ReactNode; meta?: ReactNode; title: ReactNode; }; /** Page-level title, description, and metadata that follows MDX provider variants. */ declare function PageMeta({ title, description, eyebrow, meta, children, className, }: PageMetaProps): React.JSX.Element; type TableOfContentsVariant = 'embedded' | 'inline' | 'menu' | 'rail'; interface PageTableOfContentsProps { activeOffset?: number; className?: string; containerSelector?: string; headingSelector?: string; inlinePositionClassName?: string; label?: string; onActiveLabelChange?: (label: string) => void; onNavigate?: () => void; scrollOffset?: number; showProgress?: boolean; smoothScrollDuration?: number; variant?: TableOfContentsVariant; } /** Responsive article page navigation for MDX headings. */ declare function PageTableOfContents({ activeOffset, className, containerSelector, headingSelector, inlinePositionClassName, label, onActiveLabelChange, onNavigate, scrollOffset, showProgress, smoothScrollDuration, variant, }: PageTableOfContentsProps): React.JSX.Element | null; type ResourceItem = { name: string; url: string; /** Optional one-line descriptor shown before the domain. */ note?: string; }; type ResourceListProps = { items: ResourceItem[]; className?: string; }; /** * A compact list of external resources — people, sites, references — to follow. * Each row shows a favicon, name, an optional one-line note, and the domain. */ declare function ResourceList({ items, className }: ResourceListProps): React.JSX.Element | null; type ScrollStageStepProps = { /** * The visual (image, diagram, JSX) shown for this step. Keep it cheap — in the * pinned path it re-renders whenever the active step changes, so prefer static * images/JSX over heavy live components. Avoid putting anchor `id`s inside * `media` or the prose: both the pinned (`lg+`) and stacked (below `lg`) copies * render into the DOM, so an `id` would be duplicated. */ media: ReactNode; children: ReactNode; className?: string; }; type ScrollStageProps = { children: ReactNode; className?: string; }; /** * A single scrollytelling step. Renders as a real subcomponent so the parent * `ScrollStage` can read its `media` and `children` (Compare.Item precedent). * The visual rendering is handled by `ScrollStage`; this component is only a * data carrier when used inside the stage. */ declare function ScrollStageStep(_props: ScrollStageStepProps): null; /** * MDX `ScrollStage` block — a scrollytelling section. On `lg+` with motion * allowed, the reading column scrolls while a sticky media pane crossfades to * the step centered in the viewport. Reduced-motion and mobile render a static * stacked layout (media inline above prose). SSR-safe: no window access during * render; the IntersectionObserver is set up in `useEffect`. */ declare function ScrollStage({ children, className }: ScrollStageProps): React.JSX.Element; declare namespace ScrollStage { var Step: typeof ScrollStageStep; } type StatTrend = 'up' | 'down' | 'neutral'; type StatCardProps = { /** Small muted caption above the value. */ label: string; /** The prominent metric. */ value: ReactNode; /** Optional secondary change indicator, colored by `trend`. */ change?: ReactNode; /** Semantic direction of `change`; drives the token color. */ trend?: StatTrend; className?: string; }; /** * MDX `StatCard` block — a static, SSR-safe metric card built on the * `@atom63/ui-react` `Card`. Renders a muted label, a prominent value, and an * optional change indicator colored by `trend` using semantic tokens. */ declare function StatCard({ label, value, change, trend, className }: StatCardProps): React.JSX.Element; type StatGridProps = { children: ReactNode; className?: string; }; /** * MDX `StatGrid` block — a static, SSR-safe responsive grid for laying out * `StatCard`s (or any children). Adds prose-context block spacing. */ declare function StatGrid({ children, className }: StatGridProps): React.JSX.Element; type StepsProps = { children: ReactNode; className?: string; }; type StepsStepProps = { /** Bold heading for the step. */ title: ReactNode; children: ReactNode; className?: string; /** Injected by `Steps` — the 1-indexed position in document order. */ index?: number; }; /** * A single step row: a numbered badge on the connector spine (left) plus the * title and content (right). Static/SSR-safe. `index` is injected by the parent * `Steps` so authors never number steps by hand. */ declare function StepsStep({ title, children, className, index }: StepsStepProps): React.JSX.Element; /** * MDX `Steps` block — a numbered stepper. Wraps `Steps.Step` children in an * ordered list with a connector spine, auto-numbering each step 1..n in * document order. Static/SSR-safe (no client interactivity or motion). */ declare function Steps({ children, className }: StepsProps): React.JSX.Element; declare namespace Steps { var Step: typeof StepsStep; } type TabsProps = ComponentProps; /** * MDX `Tabs` block — a thin wrapper around the `@atom63/ui-react` `Tabs` that adds * prose-context block spacing. All accessibility and keyboard navigation is * inherited from `@atom63/ui-react`. Authors compose it as * `` + `` / `` / ``. */ declare function Tabs({ className, ...props }: TabsProps): React.JSX.Element; declare namespace Tabs { var List: typeof TabsList; var Tab: typeof TabsTab; var Panel: typeof TabsPanel; } type TimelineProps = { children: ReactNode; className?: string; }; type TimelineItemProps = { /** Date or label shown in the left column (e.g. a year). */ date: ReactNode; /** Bold heading for the event. */ title: ReactNode; children: ReactNode; className?: string; }; /** * A single timeline event: date/label (left), a spine with a dot marker * (center), and the event card — title plus content (right). Static/SSR-safe. */ declare function TimelineItem({ date, title, children, className }: TimelineItemProps): React.JSX.Element; /** * MDX `Timeline` block — a vertical event timeline. Wraps `Timeline.Item` * children in an ordered list with a date column, a dotted spine, and an event * card per item. Static/SSR-safe (no client interactivity or motion). */ declare function Timeline({ children, className }: TimelineProps): React.JSX.Element; declare namespace Timeline { var Item: typeof TimelineItem; } declare const fitClasses: { readonly contain: "object-contain"; readonly cover: "object-cover"; }; type VideoCaptionPolicy = { /** Video has spoken or meaningful audio and must provide captions. */ captionPolicy?: 'required'; trackSrc: string; } | { /** Video is decorative or purely visual; no caption track is required. */ captionPolicy: 'decorative'; trackSrc?: string; }; type VideoBlockProps = { /** * Start playing, muted, on load. Ignored when the reader prefers reduced * motion. Without `controls`, a pause and play toggle sits over the video. */ autoPlay?: boolean; caption?: string; className?: string; controls?: boolean; fit?: keyof typeof fitClasses; loop?: boolean; muted?: boolean; /** Name of the toggle while the video plays. Defaults to "Pause video". */ pauseLabel?: string; /** Name of the toggle while the video is paused. Defaults to "Play video". */ playLabel?: string; showCaption?: boolean; spacing?: MediaSpacing; src: string; title: string; /** BCP 47 language of the caption track (`srclang`). Defaults to `en`. */ trackLang?: string; /** * Name of the caption track in the player's caption menu. Defaults to the * track language's own name, such as "English" or "Deutsch". */ trackLabel?: string; } & VideoCaptionPolicy; /** Portable video player for MDX lessons and docs. */ declare function VideoBlock({ title, autoPlay, caption, captionPolicy, className, controls, fit, loop, muted, pauseLabel, playLabel, showCaption, spacing, src, trackLabel, trackLang, trackSrc, }: VideoBlockProps): React.JSX.Element; export { Accordion as A, DemoStage as D, ExampleContainer as E, FigureBlock as F, MermaidDiagram as G, ImageCompare as I, KeyIdea as K, LayerStack as L, MdxPageSkeleton as M, PageTableOfContents as O, PageMeta as P, ResourceList as S, ScrollStage as U, StatCard as X, StatGrid as Z, Steps as a0, Tabs as a3, Timeline as a5, VideoBlock as a8, defaultMermaidDiagramLabels as aa, Callout as b, CodeBlock as d, ColorSwatchItem as f, Compare as h, ComparisonPair as k, mdxStyles as m, MediaPlaceholder as y }; export type { StatTrend as $, MediaPlaceholderProps as B, CalloutType as C, MermaidDiagramLabels as H, MermaidDiagramProps as J, PageMetaProps as N, PageTableOfContentsProps as Q, ResourceItem as R, ResourceListProps as T, ScrollStageProps as V, ScrollStageStepProps as W, StatCardProps as Y, StatGridProps as _, AccordionProps as a, StepsProps as a1, StepsStepProps as a2, TabsProps as a4, TimelineItemProps as a6, TimelineProps as a7, VideoBlockProps as a9, CalloutProps as c, CodeBlockProps as e, ColorSwatchItemProps as g, CompareItemProps as i, CompareProps as j, ComparisonPairProps as l, ComparisonSlotProps as n, DemoStageProps as o, ExampleContainerProps as p, FigureBlockProps as q, ImageCompareImage as r, ImageCompareProps as s, KeyIdeaProps as t, LayerStackItem as u, LayerStackLabels as v, LayerStackProps as w, MdxPageSkeletonProps as x, MediaPlaceholderKind as z };