import { P as PapyraEditorAdapter } from '../../preset-npZJt59X.js'; export { a as PAPYRA_AVAILABLE_MODES, b as PAPYRA_COLORED_VARIANT_CLASS, c as PAPYRA_FEATURE_DEFAULTS, d as PAPYRA_FEATURE_ENFORCED, e as PAPYRA_FOCUS_VARIANT_CLASS, f as PAPYRA_LOCKED_VARIANT_CLASS, g as PAPYRA_READONLY_MODES, h as PAPYRA_THEME_OVERRIDES, i as PAPYRA_THEME_TOKEN_NAMES, j as PapyraAdapterContext, k as PapyraBlockAnchor, l as PapyraBlockRef, m as PapyraEditor, n as PapyraEditorProps, o as PapyraEditorRef, p as PapyraEditorVariant, q as PapyraNoteRef, r as PapyraNoteSearchResult, s as PapyraOutlineHeading, t as PapyraPresetConfig, u as PapyraThemeOptions, v as PapyraThemeTokenName, w as createFallbackPapyraAdapter, x as createPapyraPreset, y as createPapyraThemeOverrides, z as papyraFeaturePolicy, A as papyraPreset, B as resolvePapyraThemeOverrides, C as usePapyraAdapter } from '../../preset-npZJt59X.js'; import { T as ToolbarLayout, c as ToolbarVisibility, E as ExtensiveEditorProps } from '../../index-DPw2EK7p.js'; import { EmbedResolvers } from '@lyfie/luthor-headless'; import 'react'; import '../../preset-iV8kbSxN.js'; /** * Copyright (c) Luthor Team and contributors. * Open source under the MIT License (LICENSE). * Fork it. Remix it. Ship it. * Build freely. Credit kindly. */ /** * The Papyra toolbar visibility contract: every restricted item pinned to * `false`. Passed as the wrapper's `toolbarVisibility` so the restriction holds * at the toolbar layer too, independent of the feature flags. */ declare const PAPYRA_TOOLBAR_VISIBILITY: ToolbarVisibility; /** * The persistent-toolbar layout PapyraEditor uses when the opt-in * {@link PapyraEditorProps.toolbar | `toolbar`} prop is set. * * It lists only Papyra's markdown-safe actions: history, block format * (paragraph/headings) + quote, the inline marks Papyra keeps (bold, italic, * strikethrough, inline code, link), lists + checklist with indent controls, * and the block inserts (code block, horizontal rule, table, image). The * typography pickers, text color/highlight, sub/superscript, alignment (no * lossless markdown form), the rich-embed inserter, and the theme toggle are * intentionally absent — they are also pinned off by * {@link PAPYRA_TOOLBAR_VISIBILITY} and the enforced feature policy, so the * restricted controls can never surface even if a host retunes the layout. */ declare const PAPYRA_TOOLBAR_LAYOUT: ToolbarLayout; /** * Copyright (c) Luthor Team and contributors. * Open source under the MIT License (LICENSE). * Fork it. Remix it. Ship it. * Build freely. Credit kindly. */ /** * Build the full extra-extensions array, including the upload pipeline when an * adapter is provided. The upload extension is instantiated per-adapter since * the upload callback comes from the host. */ declare function buildPapyraEmbedExtensions(adapter?: PapyraEditorAdapter): NonNullable; /** * Custom node classes the markdown bridge must understand to parse and serialize * Papyra's embeds. Passed to the extensive editor's `markdownExtraNodes` seam. */ declare const PAPYRA_EMBED_NODES: NonNullable; /** * Lossless bidirectional transformers giving Papyra's embeds a byte-stable * markdown round-trip. Ordering matters — the more specific `![[…]]` variants * must match before the general file-embed pattern: * * 1. **Saved card** (`![[card:url]]`) — the `card:` prefix must be claimed before * the general `![[…]]` file embed swallows it as a filename. * 2. **YouTube** (`![[youtube:url]]`) — the `youtube:` prefix, before file embed. * 3. **Iframe** (`![[iframe:url]]`) — the `iframe:` prefix, before file embed. * 4. **Transclusion** (`![[Note#^id]]`) — the `#^` pattern, also before file embed. * 5. **File embed** (`![[file.ext]]`) — block-level media. * 6. **Block anchor** (`^uuid`) — trailing inline marker. * 7. **Wikilink** (`[[Note]]`) — inline link. * * The **callout** (`> [!transcript]`) is a multiline-element transformer with a * distinct opening pattern, so it is independent of the ordering above; it is * tried ahead of the built-in quote on import and claims the whole block. * * Passed to the extensive editor's `markdownExtraTransformers` seam (prepended * ahead of the built-in set). */ declare const PAPYRA_EMBED_TRANSFORMERS: NonNullable; /** * Adapt a {@link PapyraEditorAdapter} onto the generic {@link EmbedResolvers} * the headless embed nodes read from context. Each resolver maps a single * adapter method; the adapter's own no-op fallback keeps every path safe when * the host wires nothing. */ declare function createPapyraEmbedResolvers(adapter: PapyraEditorAdapter): EmbedResolvers; export { PAPYRA_EMBED_NODES, PAPYRA_EMBED_TRANSFORMERS, PAPYRA_TOOLBAR_LAYOUT, PAPYRA_TOOLBAR_VISIBILITY, PapyraEditorAdapter, buildPapyraEmbedExtensions, createPapyraEmbedResolvers };