import type { JSONNode } from '@atlaskit/editor-json-transformer/types'; import type { Selection } from '@atlaskit/editor-prosemirror/state'; /** * Get the fragments from the selection. * * The result crosses an editor boundary — Remix, Rovo/convo-ai and AIFC treat it as persistable * ADF. The two same-named `nodeToJSON` exports are not interchangeable: `editor-json-transformer`'s * is a verbatim ProseMirror serialisation and leaks schema-only container variants such as * `panel_c1`, while `../utils/nodes` sanitises. * * `keepNestedTables: true` keeps the gate scoped to that strip — the sanitiser would otherwise also * rewrite nested tables into an extension carrying stringified ADF. */ export declare const getFragmentsFromSelection: (selection?: Selection) => JSONNode[] | null;