import { Extension, type JSONContent } from '@tiptap/core'; export interface PastedMarkdownOptions { /** * Plain text read as the blocks it spells, as editor JSON (`{ type: 'doc', * content }`), or `undefined` to paste it as text. The app passes its * protocol's reader — for a block document, `@estiva-app/protocol`'s * `descriptionTextToBlockDocument` through `toEditorDocument` — so a paste * reads text exactly as the agent's write of the same text does. */ read: (text: string) => JSONContent | undefined; } /** * Markdown pasted as plain text lands as what it spells: a heading, a list, a * checklist, a quote or callout, a table (LEAF-10; Miky, 2026-10-15). Only a * paste with no HTML on the clipboard is read — a copy from a web page already * pastes its own structure — and a paste that spells nothing but paragraphs * pastes exactly as before. Ctrl/Cmd+Shift+V, the plain-text paste, keeps the * text as typed, and so does a paste into code. * * For an editor that saves a block document. A message box leaves it out: a * message's text has no table (SPEC §13.2), so a pasted table stays text there. */ export declare const PastedMarkdown: Extension; //# sourceMappingURL=PastedMarkdown.d.ts.map